Commit d282dcb9 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-02-15 11:53:57 by simonmar]

Add a basic ghc -M test
parent f27beac3
......@@ -278,3 +278,19 @@ test080:
$(TEST_HC) -C A.hs
test -f A.hc
# -----------------------------------------------------------------------------
# dependency-generation tests
DEPFILE= depend
# Test that we can create a dependency file, and that we can
# modify an existing dependency file.
test200:
@$(RM) $(DEPFILE)
$(TEST_HC) -M -optdep-f -optdep depend D
test -f $(DEPFILE)
$(TEST_HC) -M -optdep-f -optdep depend D B.C A
test -f $(DEPFILE)
$(TEST_HC) -M -optdep-f -optdep depend D.hs B/C.hs A.hs
test -f $(DEPFILE)
......@@ -36,10 +36,13 @@ test('driver071', normal, run_command_ignore_output, ['$MAKE test071'])
test('driver080', normal, run_command_ignore_output, ['$MAKE test080'])
test('driver200', normal, run_command_ignore_output, ['$MAKE test200'])
clean(['B/C.hi', 'B/C.o', 'B/C.ooo', 'B/C.xhi',
'd1/P/Q.o', 'd2/R/S.o', 'd1/P/Q.hi', 'd2/R/S.hi',
'A.ooo', 'A.xhi', 'Hello.hi', 'Hello.o', 'hello'])
'A.ooo', 'A.xhi', 'Hello.hi', 'Hello.o', 'hello', 'depend'])
if default_testopts.cleanup != '':
os.spawnlp(os.P_WAIT, 'rm', 'rm', '-rf', in_testdir('obj'))
os.spawnlp(os.P_WAIT, 'rm', 'rm', '-rf', in_testdir('hi'))
Supports Markdown
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