Commit dd3837ab authored by Simon Marlow's avatar Simon Marlow Committed by Simon Marlow

Fix tests when run in parallel

parent a6d664cf
......@@ -6,12 +6,12 @@ clean:
rm -f *.o *.hi
literals:
rm -f literals.o literals.hi
rm -f literals.o literals.hi LiteralsTest.o LiteralsTest.hi
'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc literals
./literals "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
parsed:
rm -f parsed.o parsed.hi
rm -f parsed.o parsed.hi LiteralsTest2.o LiteralsTest2.hi
'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc parsed
./parsed "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
......
test('literals', normal, run_command, ['$MAKE -s --no-print-directory literals'])
test('parsed', normal, run_command, ['$MAKE -s --no-print-directory parsed'])
\ No newline at end of file
test('literals', extra_clean(['LiteralsTest.o', 'LiteralsTest.hi']),
run_command, ['$MAKE -s --no-print-directory literals'])
test('parsed', extra_clean(['LiteralsTest2.o', 'LiteralsTest2.hi']),
run_command, ['$MAKE -s --no-print-directory parsed'])
......@@ -20,7 +20,7 @@ import Data.Dynamic ( fromDynamic,Dynamic )
main::IO()
main = do
[libdir] <- getArgs
testOneFile libdir "LiteralsTest"
testOneFile libdir "LiteralsTest2"
testOneFile libdir fileName = do
p <- runGhc (Just libdir) $ do
......
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