all.T 6.56 KB
Newer Older
1 2 3 4

test('readFloat', exit_code(1), compile_and_run, [''])
test('enumDouble', normal, compile_and_run, [''])
test('enumRatio', normal, compile_and_run, [''])
5 6
test('tempfiles', normal, compile_and_run, [''])
test('fixed', normal, compile_and_run, [''])
7
test('quotOverflow', normal, compile_and_run, [''])
8
test('assert', exit_code(1), compile_and_run, ['-fno-ignore-asserts'])
9
test('CPUTime001', normal, compile_and_run, [''])
10 11
test('readLitChar',   normal, compile_and_run, [''])
test('unicode001',
ian@well-typed.com's avatar
ian@well-typed.com committed
12
     when(platform('i386-unknown-openbsd'), expect_fail),
13 14 15
     compile_and_run,
     [''])
test('unicode002',
ian@well-typed.com's avatar
ian@well-typed.com committed
16
     when(platform('i386-unknown-openbsd'), expect_fail),
17 18
     compile_and_run,
     [''])
19
test('data-fixed-show-read', normal, compile_and_run, [''])
20
test('showDouble', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
21
test('readDouble001', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
22
test('readInteger001', normal, compile_and_run, [''])
23
test('readFixed001', normal, compile_and_run, [''])
24
test('lex001', normal, compile_and_run, [''])
25 26
test('take001', extra_run_opts('1'), compile_and_run, [''])
test('genericNegative001', extra_run_opts('-1'), compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
27
test('ix001', normal, compile_and_run, [''])
28

Ian Lynagh's avatar
Ian Lynagh committed
29 30
# need to add -K64m to the compiler opts, so that GHCi gets it too
test('ioref001',
31
     [when(fast(), skip),extra_run_opts('+RTS -K64m -RTS')],
Ian Lynagh's avatar
Ian Lynagh committed
32 33 34
     compile_and_run,
     ['+RTS -K64m -RTS'])

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
test('echo001', set_stdin("echo001.hs"), compile_and_run, [''])

test('hTell001', normal, compile_and_run, [''])

test('hTell002', normal, compile_and_run, [''])

test('performGC001', normal, compile_and_run, [''])

# optimisation screws up this test because some of the traces get commoned up
test('trace001', normal, compile_and_run, [''])

test('hGetBuf002', normal, compile_and_run, [''])
test('hGetBuf003', normal, compile_and_run, [''])
test('hPutBuf001', normal, compile_and_run, [''])
test('hPutBuf002', extra_clean(['hPutBuf002.out']), compile_and_run, [''])

test('char001', 	normal, compile_and_run, [''])
test('char002', 	normal, compile_and_run, [''])

test('cstring001', 	normal, compile_and_run, [''])

thoughtpolice's avatar
thoughtpolice committed
56
test('length001',
57 58 59 60 61 62
     # length001 depends on a RULE being applied, and without -O takes
     # excessive amounts of stack space. So we specifically set a low
     # stack limit and mark it as failing under a few conditions.
     [extra_run_opts('+RTS -K8m -RTS'),
     expect_fail_for(['normal', 'threaded1', 'llvm'])],
     compile_and_run, [''])
63 64 65 66 67 68 69 70 71 72 73 74 75 76

test('ratio001', 	normal, compile_and_run, [''])

test('rand001',		reqlib('random'), compile_and_run, [''])
test('reads001',		normal, compile_and_run, [''])
test('show001',		normal, compile_and_run, [''])
test('text001',		normal, compile_and_run, [''])

test('tup001',		normal, compile_and_run, [''])

test('addr001',		normal, compile_and_run, [''])
test('dynamic001',      normal, compile_and_run, [''])
test('dynamic002',      normal, compile_and_run, [''])
test('dynamic003',      extra_run_opts('+RTS -K32m -RTS'), compile_and_run, [''])
77
test('dynamic004',      omit_ways(['normal', 'threaded1', 'ghci']), compile_and_run, [''])
78
test('dynamic005',      normal, compile_and_run, [''])
79 80 81
test('enum01',          when(fast(), skip), compile_and_run, ['-cpp'])
test('enum02', 		when(fast(), skip), compile_and_run, ['-cpp'])
test('enum03', 		when(fast(), skip), compile_and_run, ['-cpp'])
82 83 84
test('enum04', 		normal, compile_and_run, [''])
test('exceptionsrun001', 	normal, compile_and_run, [''])
test('exceptionsrun002', 	normal, compile_and_run, [''])
85 86 87
test('list001'	,	when(fast(), skip), compile_and_run, [''])
test('list002', when(fast(), skip), compile_and_run, [''])
test('list003', when(fast(), skip), compile_and_run, [''])
88 89

test('memo001',
90
     [extra_run_opts('+RTS -A10k -RTS'),
91 92 93 94 95
      extra_clean(['Memo1.hi', 'Memo1.o'])],
     multimod_compile_and_run,
     ['memo001',''])

test('memo002',
96
     [extra_run_opts('20'),
97 98 99 100 101 102
      extra_clean(['Memo2.hi', 'Memo2.o'])],
	multimod_compile_and_run, ['memo002',''])

test('packedstring001', reqlib('packedstring'), compile_and_run, ['-package packedstring'])

test('stableptr001',
103
     [when(fast(), skip), extra_run_opts('+RTS -K8m -RTS')],
104 105 106 107 108 109 110 111 112 113 114 115 116
     compile_and_run, [''])
test('stableptr003', normal, compile_and_run, [''])
test('stableptr004', extra_run_opts('+RTS -K4m -RTS'), compile_and_run, [''])
test('stableptr005', normal, compile_and_run, [''])

test('weak001', normal, compile_and_run, [''])

# In the 65001 codepage, we can't even cat the expected output on msys:
#     $ cat 4006.stdout
#     It works here
#     cat: write error: Permission denied
# Seems to be a known problem, e.g.
#     http://mingw-users.1079350.n2.nabble.com/Bug-re-Unicode-on-the-console-td3121717.html
117 118
# May 2014: seems to work on msys2
test('T4006', normal, compile_and_run, [''])
119

120
test('T5943', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
121
test('T5962', normal, compile_and_run, [''])
122
test('T7034', normal, compile_and_run, [''])
123

Simon Marlow's avatar
Simon Marlow committed
124 125
test('qsem001', normal, compile_and_run, [''])
test('qsemn001', normal, compile_and_run, [''])
Simon Marlow's avatar
Simon Marlow committed
126 127

test('T7457', normal, compile_and_run, [''])
Simon Peyton Jones's avatar
Simon Peyton Jones committed
128 129 130

test('T7773', when(opsys('mingw32'), skip), compile_and_run, [''])
# Andreas says that T7773 will not (and should not) work on Windows
131 132 133 134

# Tests for kind-polymorphic Category
test('CatPairs', normal, compile, [''])
test('CatEntail', normal, compile, [''])
ian@well-typed.com's avatar
ian@well-typed.com committed
135 136

test('T7653', normal, compile_and_run, [''])
Simon Marlow's avatar
Simon Marlow committed
137
test('T7787', normal, compile_and_run, [''])
138 139

test('topHandler01', when(opsys('mingw32'), skip), compile_and_run, [''])
140 141 142 143 144 145 146 147 148
test('topHandler02',
     [when(opsys('mingw32'), skip),
      omit_ways(['ghci']),
      # Irritatingly, the test driver calls the programs via a shell, and
      # depending on the shell, they can add their own "helpful" commentary,
      # pretty printing the name of the signal that killed the process. So we
      # ignore the stdout here, we only care about the exit code (which itself
      # is messed up because of the shell, using 128+sig encoding)
      ignore_output,
149
      signal_exit_code(2)
150 151 152 153 154
     ], compile_and_run, [''])
test('topHandler03',
     [when(opsys('mingw32'), skip),
      # As above, shells, grrr.
      ignore_output,
155
      signal_exit_code(15)
156
     ], compile_and_run, [''])
157

Joachim Breitner's avatar
Joachim Breitner committed
158

Joachim Breitner's avatar
Joachim Breitner committed
159
test('T8766',
160 161
        [ stats_num_field('bytes allocated', 
                          [ (wordsize(64), 16828144, 5)
Joachim Breitner's avatar
Joachim Breitner committed
162 163 164
	# with GHC-7.6.3: 83937384 (but faster execution than the next line)
	# before:         58771216 (without call-arity-analysis)
	# expected value: 16828144 (2014-01-14)
165 166
                          , (wordsize(32), 8433644, 5) ]) 
        , only_ways(['normal'])],
Joachim Breitner's avatar
Joachim Breitner committed
167 168
      compile_and_run,
      ['-O'])
eir@cis.upenn.edu's avatar
eir@cis.upenn.edu committed
169 170

test('T9111', normal, compile, [''])
171
test('T9395', normal, compile_and_run, [''])
172
test('T9532', normal, compile_and_run, [''])