From 51c08cf9d24151e79318e0a176898230997a68e4 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 13 Jun 2009 16:15:16 +0000 Subject: Improve bindist testing We now also test runghc and unlit --- bindisttest/HelloWorld.hs | 5 ----- bindisttest/HelloWorld.lhs | 8 ++++++++ bindisttest/Makefile | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 bindisttest/HelloWorld.hs create mode 100644 bindisttest/HelloWorld.lhs (limited to 'bindisttest') diff --git a/bindisttest/HelloWorld.hs b/bindisttest/HelloWorld.hs deleted file mode 100644 index 56e1e89994..0000000000 --- a/bindisttest/HelloWorld.hs +++ /dev/null @@ -1,5 +0,0 @@ - -module Main (main) where - -main :: IO () -main = putStr "Hello world!" diff --git a/bindisttest/HelloWorld.lhs b/bindisttest/HelloWorld.lhs new file mode 100644 index 0000000000..94f7defd57 --- /dev/null +++ b/bindisttest/HelloWorld.lhs @@ -0,0 +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 -- cgit v1.2.1