add test for #2295 (-outputdir)

parent 242af23d
......@@ -80,6 +80,16 @@ test018:
$(TEST_HC) -c F018.hs -odir obj018
test -f obj018/TestStub018_stub$(OBJSUFFIX)
# test -outputdir
test019:
$(RM) -rf out019
$(TEST_HC) -c F.hs -outputdir out019
test -f out019/TestStub.hi
test -f out019/TestStub$(OBJSUFFIX)
test -f out019/TestStub_stub$(OBJSUFFIX)
test -f out019/TestStub_stub.c
test -f out019/TestStub_stub.h
# -----------------------------------------------------------------------------
# One-shot compilation, hierarchical modules
......
......@@ -42,6 +42,10 @@ test('driver018',
'obj018']),
run_command,
['$MAKE -s --no-print-directory test018'])
test('driver019',
extra_clean(['out019/TestStub.hi','out019/TestStub.o','out019/TestStub_stub.c','out019/TestStub_stub.h','out019/TestStub_stub.o']),
run_command,
['$MAKE -s --no-print-directory test019'])
test('driver021', normal, run_command,
['$MAKE -s --no-print-directory test021'])
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