Commit 72f39133 authored by Simon Marlow's avatar Simon Marlow
Browse files

add tests for #2248

parent 1174775e
......@@ -391,6 +391,19 @@ test080:
test -f A.hc
# Tests for #2248, -o and .exe
define test081
$(RM) $(1).hs $(1).hi $(1)$(OBJSUFFIX) $(1).hc $(1)$(exeext)
echo "module Main where { main = putStrLn \"ok\" }" >$(1).hs
$(TEST_HC) --make -v0 $(1).hs
test -f $(1)$(exeext)
endef
test081.1:
$(call test081, Test_0)
test081.2:
$(call test081, Test.0)
# -----------------------------------------------------------------------------
# --make tests
......
......@@ -171,6 +171,13 @@ test('driver080', normal, run_command,
['$MAKE -s --no-print-directory test080'])
cleanall()
test('driver081.1', normal, run_command,
['$MAKE -s --no-print-directory test081.1'])
cleanall()
test('driver081.2', normal, run_command,
['$MAKE -s --no-print-directory test081.2'])
cleanall()
test('driver200', normal, run_command,
['$MAKE -s --no-print-directory test200'])
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