Skip to content

Commit

Permalink
Add test for ticket #257
Browse files Browse the repository at this point in the history
Not automated yet, the testsuite needs resurrecting first.
  • Loading branch information
dcoutts committed Mar 7, 2008
1 parent e82fc50 commit 9043ce0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/sdist/Exe1.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main = print "exe1"
1 change: 1 addition & 0 deletions tests/sdist/Exe2.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main = print "exe2"
19 changes: 19 additions & 0 deletions tests/sdist/sdist.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Name: test
Version: 0.1
Build-Type: Simple
Cabal-Version: >=1.2

-- http://hackage.haskell.org/trac/hackage/ticket/257
-- This is a test to make sure we're including all sections into the sdist
-- irrespective of the buildable status.
-- So the test passes if the tarball includes both Exe1.hs and Exe2.hs

Executable exe1
Main-Is: Exe1.hs
Build-Depends: base

Executable exe2
Main-Is: Exe2.hs
Build-Depends: base
if !os(linux)
Buildable: False

0 comments on commit 9043ce0

Please sign in to comment.