summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-06-13 16:15:16 +0000
committerIan Lynagh <igloo@earth.li>2009-06-13 16:15:16 +0000
commit51c08cf9d24151e79318e0a176898230997a68e4 (patch)
tree550def56065767f5812afbf69e3addac4eefc795
parent0d9b5f10e97a7afe621e154979d737d91d8b7688 (diff)
downloadhaskell-51c08cf9d24151e79318e0a176898230997a68e4.tar.gz
Improve bindist testing
We now also test runghc and unlit
-rw-r--r--bindisttest/HelloWorld.lhs (renamed from bindisttest/HelloWorld.hs)3
-rw-r--r--bindisttest/Makefile2
2 files changed, 5 insertions, 0 deletions
diff --git a/bindisttest/HelloWorld.hs b/bindisttest/HelloWorld.lhs
index 56e1e89994..94f7defd57 100644
--- a/bindisttest/HelloWorld.hs
+++ b/bindisttest/HelloWorld.lhs
@@ -1,5 +1,8 @@
+\begin{code}
module Main (main) where
main :: IO ()
main = putStr "Hello world!"
+\end{code}
+
diff --git a/bindisttest/Makefile b/bindisttest/Makefile
index aa36a2cbbb..71cb578ef1 100644
--- a/bindisttest/Makefile
+++ b/bindisttest/Makefile
@@ -33,6 +33,8 @@ else
cd a/b/c/$(BIN_DIST_NAME) && ./configure --prefix=$(BIN_DIST_INST_DIR)
cd a/b/c/$(BIN_DIST_NAME) && make install
endif
+ $(BIN_DIST_INST_DIR)/bin/runghc HelloWorld > output
+ $(CONTEXT_DIFF) output expected_output
$(BIN_DIST_INST_DIR)/bin/ghc --make HelloWorld
./HelloWorld > output
$(CONTEXT_DIFF) output expected_output