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

6 7
test('arith001', normal, compile_and_run, [''])
test('arith002', normal, compile_and_run, [''])
8
test('arith003', normal, compile_and_run, [''])
9
test('arith004', normal, compile_and_run, [''])
10
test('arith005', when(platform('i386-apple-darwin'), expect_broken_for(7043, 'ghci')), compile_and_run, [''])
11 12
test('arith006', normal, compile_and_run, [''])
test('arith007', normal, compile_and_run, [''])
13

14 15 16
# On i386, we need -msse2 to get reliable floating point results
ways = normal
opts = ''
17
if config.platform.startswith('i386-'):
18
    if config.compiler_type == 'ghc' and \
19
      version_ge(config.compiler_version, '6.13'):
20 21 22
        opts = '-msse2'
    else:
        ways = expect_fail_for(['optasm','threaded2','hpc','dyn','profasm'])
23

24
test('arith008', ways, compile_and_run, [opts])
25

26 27
test('arith009', normal, compile_and_run, [''])
test('arith010', normal, compile_and_run, [''])
28
test('arith011', normal, compile_and_run, [''])
29

30
test('arith012', ways, compile_and_run, [opts])
31

32
test('arith013', only_compiler_types(['ghc']), compile_and_run, [''])
33 34
test('arith014', normal, compile_and_run, [''])
test('arith015', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
35 36 37
test('numrun009', normal, compile_and_run, [''])
test('numrun010', normal, compile_and_run, [''])
test('numrun011', normal, compile_and_run, [''])
38
test('numrun012', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
39 40
test('numrun013', normal, compile_and_run, [''])
test('numrun014', normal, compile_and_run, [''])
41
test('arith016', [normal,only_compiler_types(['ghc'])], compile_and_run, [''])
42 43 44
test('arith017', normal, compile_and_run, [''])
test('arith018', normal, compile_and_run, [''])
test('arith019', normal, compile_and_run, [''])
45
test('expfloat', normal, compile_and_run, [''])
Simon Marlow's avatar
Simon Marlow committed
46

47 48 49 50
test('T1603', skip, compile_and_run, [''])
test('T3676', expect_broken(3676), compile_and_run, [''])
test('T4381', normal, compile_and_run, [''])
test('T4383', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
51

52 53 54
test('add2', normal, compile_and_run, ['-fobject-code'])
test('mul2', normal, compile_and_run, ['-fobject-code'])
test('quotRem2', normal, compile_and_run, ['-fobject-code'])
pcapriotti's avatar
pcapriotti committed
55
test('T5863', normal, compile_and_run, [''])
Ian Lynagh's avatar
Ian Lynagh committed
56

pcapriotti's avatar
pcapriotti committed
57 58 59 60
test('T7014',
     extra_clean(['T7014.simpl']),
     run_command,
     ['$MAKE -s --no-print-directory T7014'])
Simon Marlow's avatar
Simon Marlow committed
61 62

test('T7233', normal, compile_and_run, [''])
thoughtpolice's avatar
thoughtpolice committed
63
test('NumDecimals', normal, compile_and_run, [''])
64
test('T8726', normal, compile_and_run, [''])
65
test('CarryOverflow', omit_ways(['ghci']), compile_and_run, [''])