Commit 513a449c authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

testsuite: Use makefile_test

This eliminates most uses of run_command in the testsuite in favor of the more
structured makefile_test.
parent bdb559a6
test('determ009', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ009'])
test('determ009', [extra_files(['A.hs'])], makefile_test, ['determ009'])
test('determ010', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ010'])
test('determ010', [extra_files(['A.hs'])], makefile_test, ['determ010'])
test('determ011', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ011'])
test('determ011', [extra_files(['A.hs'])], makefile_test, ['determ011'])
test('determ012', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ012'])
test('determ012', [extra_files(['A.hs'])], makefile_test, ['determ012'])
test('determ013', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ013'])
test('determ013', [extra_files(['A.hs'])], makefile_test, ['determ013'])
test('determ014', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ014'])
test('determ014', [extra_files(['A.hs'])], makefile_test, ['determ014'])
test('determ015', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ015'])
test('determ015', [extra_files(['A.hs'])], makefile_test, ['determ015'])
test('determ016', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ016'])
test('determ016', [extra_files(['A.hs'])], makefile_test, ['determ016'])
test('determ017', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ017'])
test('determ017', [extra_files(['A.hs'])], makefile_test, ['determ017'])
test('determ018', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ018'])
test('determ018', [extra_files(['A.hs'])], makefile_test, ['determ018'])
test('determ019', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ019'])
test('determ019', [extra_files(['A.hs'])], makefile_test, ['determ019'])
test('determ021',
[normalise_fun(normalise_errmsg), extra_files(['A.hs'])],
run_command,
['$MAKE -s --no-print-directory determ021'])
makefile_test, ['determ021'])
test('determ022', [extra_files(['A.hs'])], run_command, ['$MAKE -s --no-print-directory determ022'])
test('determ022', [extra_files(['A.hs'])], makefile_test, ['determ022'])
# Test for #13392, it makes sure 'ghc --show-options' does not print each flag more than once.
test('T13392', normal, run_command, ['$MAKE -s --no-print-directory T13392'])
test('T13392', normal, makefile_test, [])
test('T13710',
[extra_files(['A.hs', 'A.hs-boot', 'B.hs'])],
run_command,
['$MAKE -s --no-print-directory T13710'])
makefile_test, [])
test('T1372', [extra_files(['p1/', 'p2/'])], run_command, ['$MAKE -s --no-print-directory T1372'])
test('T1372', [extra_files(['p1/', 'p2/'])], makefile_test, ['T1372'])
test('T13803',
[extra_files(['D.hs', 'E.hs-boot', 'E.hs', 'Y.hs', 'Y.hs-boot'])],
run_command,
['$MAKE -s --no-print-directory T13803'])
makefile_test, [])
test('T13914',
[extra_files(['main.hs'])],
run_command,
['$MAKE -s --no-print-directory t13914'])
makefile_test, ['t13914'])
......@@ -2,5 +2,4 @@ test('T14075',
[ extra_files(['F.hs', 'F.hs-boot', 'O.hs', 'V.hs', 'V.hs-boot'])
, req_smp, # uses ghc --make -j2
],
run_command,
['$MAKE -s --no-print-directory T14075'])
makefile_test, [])
test('T15970', [extra_files(['A1.hs', 'A2.hs', 'B.hs', 'C.hs'])],
run_command, ['$MAKE -s --no-print-directory T15970'])
makefile_test, [])
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