Refactor GHCi UI to fix #11606, #12091, #15721, #16096
[ghc.git] / testsuite / tests / ghci / should_run / all.T
1
2 # We only want to run these tests with GHCi
3 def just_ghci( name, opts ):
4   opts.only_ways = ['ghci']
5
6 test('ghcirun001', just_ghci, compile_and_run, [''])
7 test('ghcirun002', just_ghci, compile_and_run, [''])
8 test('ghcirun003', just_ghci, compile_and_run, [''])
9 test('T2589',      just_ghci, compile_and_run, [''])
10 test('T2881',      just_ghci, compile_and_run, [''])
11
12 test('T3171',
13      [when(opsys('mingw32'),skip),
14       skip, # This test is quite flaky (#15383)
15       req_interp,
16       combined_output],
17      run_command,
18      ['$MAKE -s --no-print-directory T3171'])
19
20 test('ghcirun004', just_ghci, compile_and_run, [''])
21 test('T8377',      just_ghci, compile_and_run, [''])
22 test('T9914',      just_ghci, ghci_script, ['T9914.script'])
23 test('T9915',      just_ghci, ghci_script, ['T9915.script'])
24 test('T10145',     just_ghci, ghci_script, ['T10145.script'])
25 test('T7253',      just_ghci, ghci_script, ['T7253.script'])
26 test('T11328',     just_ghci, ghci_script, ['T11328.script'])
27 test('T11825',     just_ghci, ghci_script, ['T11825.script'])
28 test('T12128',     just_ghci, ghci_script, ['T12128.script'])
29 test('T12456',     just_ghci, ghci_script, ['T12456.script'])
30 test('T12525',     just_ghci, ghci_script, ['T12525.script'])
31 test('T12549',     just_ghci, ghci_script, ['T12549.script'])
32 test('BinaryArray', normal, compile_and_run, [''])
33 test('T14125a',    just_ghci, ghci_script, ['T14125a.script'])
34 test('T13825-ghci',just_ghci, ghci_script, ['T13825-ghci.script'])
35 test('T14963a', just_ghci, ghci_script, ['T14963a.script'])
36 test('T14963b', just_ghci, ghci_script, ['T14963b.script'])
37 test('T14963c', [extra_hc_opts("-fdefer-type-errors")], ghci_script, ['T14963c.script'])
38 test('T15007', just_ghci, ghci_script, ['T15007.script'])
39 test('T15806',     just_ghci, ghci_script, ['T15806.script'])
40 test('T15369',     just_ghci, ghci_script, ['T15369.script'])
41
42 test('T15633a',
43      [extra_files(['tc-plugin-ghci/']),
44       when(opsys('mingw32'), multi_cpu_race),
45       only_ways(['ghci']),
46       pre_cmd('$MAKE -s --no-print-directory -C tc-plugin-ghci package.plugins01 TOP={top}'),
47       extra_hc_opts("-package-db tc-plugin-ghci/pkg.plugins01/local.package.conf -fplugin TcPluginGHCi")
48       ],
49      ghci_script, ['T15633a.script'])
50
51 test('T15633b',
52      [extra_files(['tc-plugin-ghci/']),
53       when(opsys('mingw32'), multi_cpu_race),
54       only_ways(['ghci']),
55       pre_cmd('$MAKE -s --no-print-directory -C tc-plugin-ghci package.plugins01 TOP={top}'),
56       extra_hc_opts("-package-db tc-plugin-ghci/pkg.plugins01/local.package.conf")
57       ],
58      ghci_script, ['T15633b.script'])
59
60 test('T16096', just_ghci, ghci_script, ['T16096.script'])