Commit cdd2c62c authored by Simon Marlow's avatar Simon Marlow

Add tests for -keep-s-file with and without --make

One of these fails with 6.6
parent b8142222
......@@ -284,6 +284,18 @@ test061:
$(TEST_HC) --make -keep-hc-files -fvia-C A.hs
test -f A.hc
# Test that -keep-s-files works with --make and -fvia-C
test061a.1:
@$(RM) A.hi A$(OBJSUFFIX) A.s
$(TEST_HC) --make -keep-s-files -fvia-C A.hs
test -f A.s
# Test that -keep-s-files works without --make
test061a.2:
@$(RM) A.hi A$(OBJSUFFIX) A.s
$(TEST_HC) -c -keep-s-files -fvia-C A.hs
test -f A.s
# Test that -main-is works with --make
test062.1:
@$(RM) Hello.hs Hello.hi Hello$(OBJSUFFIX) Hello.hc hello
......
......@@ -79,6 +79,10 @@ test('driver060', ignore_output, run_command, ['$MAKE test060'])
cleanall()
test('driver061', ignore_output, run_command, ['$MAKE test061'])
cleanall()
test('driver061a.1', ignore_output, run_command, ['$MAKE test061a.1'])
cleanall()
test('driver061a.2', ignore_output, run_command, ['$MAKE test061a.2'])
cleanall()
test('driver062.1', ignore_output, run_command, ['$MAKE test062.1'])
cleanall()
......
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