diff options
Diffstat (limited to 'testsuite/tests/ghc-e/should_run/Makefile')
-rw-r--r-- | testsuite/tests/ghc-e/should_run/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-e/should_run/Makefile b/testsuite/tests/ghc-e/should_run/Makefile new file mode 100644 index 0000000000..2a7fd0a7a8 --- /dev/null +++ b/testsuite/tests/ghc-e/should_run/Makefile @@ -0,0 +1,29 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +ghc-e001: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e "return ()" + +ghc-e002: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" ghc-e002.hs + +ghc-e003: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e 'putStrLn "Foo"' -e 'putStrLn "Bar"' + +ghc-e004: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":m + System.Exit" -e "exitWith (ExitFailure 6)"; echo $$? + +# This is what runghc does: +ghc-e005: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -main-is foo ghc-e005.hs -e ":set prog ghc-e005-prog" -e ":main [\"the\",\"args\"]"; echo $$? + +2228: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" 2228.hs + +2636: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" 2636.hs; if [ "$?" != 0 ]; then true; else false; fi + +3890: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" 3890.hs | cat + |