Commit fadfd2cc authored by simonmar's avatar simonmar
Browse files

[project @ 2005-05-23 10:19:40 by simonmar]

Add a couple more -main-is tests
parent e467354b
module Hello where
hello = print "Hello World!\n"
......@@ -209,10 +209,21 @@ test061:
test -f A.hc
# Test that -main-is works with --make
test062:
@$(RM) Hello.hi Hello.o Hello.hc
test062.1:
@$(RM) Hello.hs Hello.hi Hello.o Hello.hc hello
echo "module Hello where { hello = putStrLn \"ok\" }" >Hello.hs
$(TEST_HC) --make -main-is Hello.hello Hello -o hello
./hello
test062.2:
@$(RM) Hello.hs Hello.hi Hello.o Hello.hc hello
echo "module Hello where { main = putStrLn \"ok\" }" >Hello.hs
$(TEST_HC) --make -main-is Hello Hello -o hello
./hello
test062.3:
@$(RM) Hello.hs Hello.hi Hello.o Hello.hc hello
echo "hello = putStrLn \"ok\"" >Hello.hs
$(TEST_HC) --make -main-is hello Hello.hs -o hello
./hello
# Test that -i deletes the list of search paths.
# The compilation will fail, but we ignore the failure and just
......@@ -279,6 +290,7 @@ test080:
test -f A.hc
# -----------------------------------------------------------------------------
# --make tests
......
......@@ -23,7 +23,11 @@ test('driver053', normal, run_command_ignore_output, ['$MAKE test053'])
test('driver060', normal, run_command_ignore_output, ['$MAKE test060'])
test('driver061', normal, run_command_ignore_output, ['$MAKE test061'])
test('driver062', normal, run_command_ignore_output, ['$MAKE test062'])
test('driver062.1', normal, run_command_ignore_output, ['$MAKE test062.1'])
test('driver062.2', normal, run_command_ignore_output, ['$MAKE test062.2'])
test('driver062.3', normal, run_command_ignore_output, ['$MAKE test062.3'])
test('driver063', normal, run_command, ['$MAKE -s --no-print-directory test063'])
test('driver064', normal, run_command_ignore_output, ['$MAKE test064'])
test('driver065', normal, run_command_ignore_output, ['$MAKE test065'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment