all.T 5 KB
Newer Older
1
# args to compile_and_run are:
2 3 4
#	extra compile flags
#	extra run flags
#	expected process return value, if not zero
5

6 7 8
# -----------------------------------------------------------------------------
# Pick an arbitrary few to run when 'fast' is on

9
test('tcrun001', normal, compile_and_run, [''])
ross's avatar
ross committed
10
test('tcrun002', only_compiler_types(['ghc']), compile_and_run, [''])
11 12
test('tcrun003', normal, compile_and_run, [''])
test('tcrun004', normal, compile_and_run, [''])
13
test('tcrun005', normal, compile_and_run, [''])
14
test('Defer01', normal, compile_and_run, [''])
15 16
test('TcNullaryTC', when(compiler_lt('ghc', '7.7'), skip), compile_and_run, [''])
test('TcCoercible', when(compiler_lt('ghc', '7.7'), skip), compile_and_run, [''])
17 18 19 20

# -----------------------------------------------------------------------------
# Skip everything else if fast is on

21
def f(name, opts):
22 23
    if config.fast:
        opts.skip = 1
24 25
setTestOpts(f)

26 27 28 29 30 31 32 33 34 35 36 37 38 39
test('tcrun006', normal, compile_and_run, [''])
test('tcrun008', normal, compile_and_run, [''])
test('tcrun009', normal, compile_and_run, [''])
test('tcrun010', normal, compile_and_run, [''])
test('tcrun011', normal, compile_and_run, [''])
test('tcrun012', normal, compile_and_run, [''])
test('tcrun013', normal, compile_and_run, [''])
test('tcrun014', normal, compile_and_run, [''])
test('tcrun015', normal, compile_and_run, ['-O'])
test('tcrun016', normal, compile_and_run, [''])
test('tcrun017', normal, compile_and_run, [''])
test('tcrun018', normal, compile_and_run, [''])
test('tcrun019', normal, compile_and_run, [''])
test('tcrun020', normal, compile_and_run, [''])
Austin Seipp's avatar
Austin Seipp committed
40
test('tcrun021', normal, compile_and_run, ['-package containers'])
41 42
test('tcrun022', [omit_ways(['ghci']),only_compiler_types(['ghc'])],
     compile_and_run, ['-O'])
43 44
test('tcrun023', normal, compile_and_run, ['-O'])
test('tcrun024', normal, compile_and_run, ['-O'])
Ian Lynagh's avatar
Ian Lynagh committed
45 46
test('tcrun025', extra_clean(['TcRun025_B.hi', 'TcRun025_B.o']),
     multimod_compile_and_run, ['tcrun025',''])
47
test('tcrun026', normal, compile_and_run, [''])
48
test('tcrun027', normal, compile_and_run, [''])
Austin Seipp's avatar
Austin Seipp committed
49
test('tcrun028', normal, compile_and_run, [''])
50
test('tcrun029', normal, compile_and_run, [''])
51
test('tcrun030', normal, compile_and_run, [''])
ross's avatar
ross committed
52
test('tcrun031', only_compiler_types(['ghc']), compile_and_run, [''])
53 54
test('tcrun032', only_compiler_types(['ghc']), compile_and_run, [''])
test('tcrun033', only_compiler_types(['ghc']), compile_and_run, [''])
55
test('tcrun034', only_compiler_types(['ghc']), compile_and_run, [''])
56
test('tcrun035', only_compiler_types(['ghc']), compile_fail, [''])
57
test('tcrun036', only_compiler_types(['ghc']), compile_and_run, [''])
58
test('tcrun037', only_compiler_types(['ghc']), compile_and_run, [''])
59

Ian Lynagh's avatar
Ian Lynagh committed
60 61 62 63
test('tcrun038',
     extra_clean(['TcRun038_B.hi', 'TcRun038_B.o']),
     multimod_compile_and_run,
     ['tcrun038',''])
64 65

test('tcrun039', only_compiler_types(['ghc']), compile_and_run, [''])
66
test('tcrun040', normal, compile_and_run, [''])
67 68
test('tcrun041', omit_ways(['ghci']), compile_and_run, [''])
test('tcrun042', normal, compile_and_run, [''])
69 70
test('tcrun043', normal, compile_and_run, [''])
test('tcrun044', normal, compile_and_run, [''])
71
test('tcrun045', normal, compile_fail, [''])
72
test('tcrun046', normal, compile_and_run, [''])
73 74 75 76 77 78 79 80 81 82
test('tcrun047', [omit_ways(['ghci']), only_compiler_types(['ghc'])],
     compile_and_run, [''])
test('tcrun048', [omit_ways(['ghci']), only_compiler_types(['ghc'])],
     compile_and_run, [''])
test('tcrun049', [omit_ways(['ghci']), only_compiler_types(['ghc'])],
     compile_and_run, [''])
test('tcrun050', [omit_ways(['ghci']), only_compiler_types(['ghc'])],
     compile_and_run, [''])
test('tcrun051', [omit_ways(['ghci']), only_compiler_types(['ghc'])],
     compile_and_run, [''])
83

84
test('church', normal, compile_and_run, [''])
85
test('testeq2', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
86
test('T1624', normal, compile_and_run, [''])
87
test('IPRun', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
88 89 90

# Support files for T1735 are in directory T1735_Help/
test('T1735', normal, multimod_compile_and_run, ['T1735',''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
91

Ian Lynagh's avatar
Ian Lynagh committed
92
test('T3731', normal, compile_and_run, [''])
93
test('T3731-short', normal, compile_and_run, [''])
94 95
test('T3500a', normal, compile_and_run, [''])
test('T3500b', normal, compile_and_run, [''])
96
test('T4809', reqlib('mtl'), compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
97
test('T2722', normal, compile_and_run, [''])
98
test('mc17', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
99
test('T5759', normal, compile_and_run, [''])
100 101 102 103
test('T5573a', [omit_ways(['ghci']), only_compiler_types(['ghc'])],
     compile_and_run, [''])
test('T5573b', [omit_ways(['ghci']), only_compiler_types(['ghc'])],
     compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
104
test('T7023', normal, compile_and_run, [''])
pcapriotti's avatar
pcapriotti committed
105
test('T7126', normal, compile_and_run, [''])
106
test('T6117', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
107
test('T5751', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
108
test('T5913', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
109
test('T7748', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
110
test('T7861', exit_code(1), compile_and_run, [''])
111
test('TcTypeNatSimpleRun', normal, compile_and_run, [''])
Krzysztof Gogolewski's avatar
Krzysztof Gogolewski committed
112
test('T8119', normal, ghci_script, ['T8119.script'])
Krzysztof Gogolewski's avatar
Krzysztof Gogolewski committed
113
test('T8492', normal, compile_and_run, [''])
114
test('T8739', normal, compile_and_run, [''])