diff options
author | Ian Lynagh <igloo@earth.li> | 2011-11-06 13:32:49 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-11-06 13:56:14 +0000 |
commit | 00ca8c345c1c8ae2fe6ded15204bf03fc34849fc (patch) | |
tree | 99540c05bb9fb6172c1845ab0955c00c1f81762e /testsuite/tests/th/Makefile | |
parent | 5c117b6a7edd61b3d7e5709f55804df29c986816 (diff) | |
download | haskell-00ca8c345c1c8ae2fe6ded15204bf03fc34849fc.tar.gz |
Add a test for TH's qAddDependentFile
Diffstat (limited to 'testsuite/tests/th/Makefile')
-rw-r--r-- | testsuite/tests/th/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tests/th/Makefile b/testsuite/tests/th/Makefile index 1e35cecb12..97692391c0 100644 --- a/testsuite/tests/th/Makefile +++ b/testsuite/tests/th/Makefile @@ -17,3 +17,22 @@ TH_spliceE5_prof:: '$(TEST_HC)' $(TEST_HC_OPTS) $(HC_OPTS) --make -v0 TH_spliceE5_prof.hs -prof -auto-all -osuf p.o -o $@ ./$@ +.PHONY: TH_Depends +TH_Depends: + $(RM) TH_Depends_external.txt + $(RM) TH_Depends TH_Depends.exe + $(RM) TH_Depends.o TH_Depends.hi + $(RM) TH_Depends_External.o TH_Depends_External.hi + echo "first run" > TH_Depends_external.txt + '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 TH_Depends + ./TH_Depends +# Remove the executable, as GHC won't relink if the timestamps seem to +# be the same + $(RM) TH_Depends TH_Depends.exe + echo "second run" > TH_Depends_external.txt +# Give TH_Depends_external.txt a future date in case it gets the same +# timestamp again + touch --date="now + 3 seconds" TH_Depends_external.txt + '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 TH_Depends + ./TH_Depends + |