-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for --working-dir and hsc2s
Before the previous patches this test failed because an incorrect path was passed to hsc2hs (a preprocessor), it now succeeds :)
- Loading branch information
1 parent
8a73f7a
commit 812d1e8
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/WorkingDirRel/WD_NO_MENTION/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Revision history for n | ||
|
||
## 0.1.0.0 -- YYYY-mm-dd | ||
|
||
* First version. Released on an unsuspecting world. |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/WorkingDirRel/WD_NO_MENTION/app/Main.hsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Main where | ||
|
||
main = print () |
19 changes: 19 additions & 0 deletions
19
cabal-testsuite/PackageTests/WorkingDirRel/WD_NO_MENTION/n.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cabal-version: 3.0 | ||
name: n | ||
version: 0.1.0.0 | ||
license: NONE | ||
author: Matthew Pickering | ||
maintainer: [email protected] | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
|
||
common warnings | ||
ghc-options: -Wall | ||
|
||
executable n | ||
import: warnings | ||
main-is: Main.hs | ||
build-depends: base | ||
hs-source-dirs: app | ||
build-tool-depends: hsc2hs:hsc2hs | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupTest $ recordMode DoNotRecord $ do | ||
withDirectory "WD_NO_MENTION" $ setup_build [] |