Skip to content

Commit

Permalink
Add test for --working-dir and hsc2s
Browse files Browse the repository at this point in the history
Before the previous patches this test failed because an incorrect path
was passed to hsc2hs (a preprocessor), it now succeeds :)
  • Loading branch information
mpickering committed Aug 21, 2024
1 parent 8a73f7a commit 812d1e8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
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.
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 cabal-testsuite/PackageTests/WorkingDirRel/WD_NO_MENTION/n.cabal
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
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/WorkingDirRel/setup.test.hs
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 []

0 comments on commit 812d1e8

Please sign in to comment.