diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2019-06-27 11:46:20 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-07-09 22:58:48 -0400 |
commit | d7423f1096b5415928ba1d1d621e066ef4e5b641 (patch) | |
tree | e2af0c2c313cc6601d671afd420d90316914dfea /testsuite/tests/driver | |
parent | 7f8bf98ea5b726d3f874faf23d4934765ed1116b (diff) | |
download | haskell-d7423f1096b5415928ba1d1d621e066ef4e5b641.tar.gz |
Testsuite tweaks and refactoring
- Rename requires_th to req_th for consistency with other req functions
(e.g. req_interp, req_profiling etc.)
- req_th (previously requires_th) now checks for interpreter (via
req_interp). With this running TH tests are skipped when running the
test suite with stage=1.
- Test tweaks:
- T9360a, T9360b: Use req_interp
- recomp009, T13938, RAE_T32a: Use req_th
- Fix check-makefiles linter: it now looks for Makefiles instead of .T
files (which are actually Python files)
Diffstat (limited to 'testsuite/tests/driver')
-rw-r--r-- | testsuite/tests/driver/all.T | 6 | ||||
-rw-r--r-- | testsuite/tests/driver/recomp009/all.T | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T index a3f33c567f..b2187a2517 100644 --- a/testsuite/tests/driver/all.T +++ b/testsuite/tests/driver/all.T @@ -227,8 +227,8 @@ test('T365', [pre_cmd('touch test_preprocessor.txt'), unless(opsys('mingw32'), skip)], compile_fail, ['']) -test('T9360a', normal, run_command, ['{compiler} --interactive -e "" -ignore-dot-ghci']) -test('T9360b', normal, run_command, ['{compiler} -e "" --interactive -ignore-dot-ghci']) +test('T9360a', req_interp, run_command, ['{compiler} --interactive -e "" -ignore-dot-ghci']) +test('T9360b', req_interp, run_command, ['{compiler} -e "" --interactive -ignore-dot-ghci']) test('T10970', normal, compile_and_run, ['']) test('T4931', normal, compile_and_run, ['']) @@ -273,6 +273,6 @@ test('T14452', [], makefile_test, []) test('T15396', normal, compile_and_run, ['-package ghc']) test('T16737', [extra_files(['T16737include/']), - requires_th, + req_th, expect_broken_for(16541, ['ghci'])], compile_and_run, ['-optP=-isystem -optP=T16737include']) diff --git a/testsuite/tests/driver/recomp009/all.T b/testsuite/tests/driver/recomp009/all.T index 5e20e09110..33c36f7ea3 100644 --- a/testsuite/tests/driver/recomp009/all.T +++ b/testsuite/tests/driver/recomp009/all.T @@ -1,3 +1,3 @@ # Test for #481, a recompilation bug with Template Haskell -test('recomp009', [extra_files(['Main.hs', 'Sub1.hs', 'Sub2.hs'])], makefile_test, []) +test('recomp009', [req_th, extra_files(['Main.hs', 'Sub1.hs', 'Sub2.hs'])], makefile_test, []) |