From 51c08cf9d24151e79318e0a176898230997a68e4 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 13 Jun 2009 16:15:16 +0000 Subject: [PATCH] Improve bindist testing We now also test runghc and unlit --- bindisttest/{HelloWorld.hs => HelloWorld.lhs} | 3 +++ bindisttest/Makefile | 2 ++ 2 files changed, 5 insertions(+) rename bindisttest/{HelloWorld.hs => HelloWorld.lhs} (73%) diff --git a/bindisttest/HelloWorld.hs b/bindisttest/HelloWorld.lhs similarity index 73% rename from bindisttest/HelloWorld.hs rename to bindisttest/HelloWorld.lhs index 56e1e89..94f7def 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 aa36a2c..71cb578 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 -- 1.7.10.4