Commit a20fb0d7 authored by ijones's avatar ijones
Browse files

test case for building executable

parent 8d39bb1b
......@@ -153,6 +153,8 @@ tests = [TestLabel "testing the HUnit package" $ TestCase $
assertCmd "./setup build"
"build returned error code"
doesFileExist "dist/build/testA" >>=
assertBool "build did not create the executable: testA"
assertCmd "./setup sdist"
"setup sdist returned error code"
doesFileExist "dist/test-1.0.tgz" >>=
* 0.1
** Build executables for mainModules
** if library is Nothing, then don't build the library. sanity check
for both library and executables == nothing.
** Extensions
- complain if their use makes the code non-portable?
- constructorless data-types
- parsing for the options isn't yet implemented?
** clean up "make install"
** grep for "FIX"
** does clean remove installed-pkg-config and .setup-config or
......@@ -13,7 +15,6 @@
** add "clean" to doc?
** add description file format to doc.
** Change name of Setup.description?
** build ghci libraries
* 1.0
** HC-PKG (see "Depends on HC-PKG" below)
module Main where
import A
main = print a
......@@ -2,3 +2,8 @@ Name: test
Version: 1.0
Modules: A, B.A
Exposed-Modules: A
Extensions: ForeignFunctionInterface
Executable: testA
Modules: A, Main
Extensions: OverlappingInstances
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment