Improve bindist testing
[ghc-hetmet.git] / bindisttest / Makefile
index 1599b37..71cb578 100644 (file)
@@ -33,13 +33,16 @@ 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
+       $(BIN_DIST_INST_DIR)/bin/ghc-pkg check
 
 clean distclean:
        $(RM) -rf $(BIN_DIST_INST_SUBDIR)
-       $(RM) -rf ghc*
+       $(RM) -rf a/b/c/*
        $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
 
 # Ignore a load of other standard targets