summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/linking/all.T
blob: 4d05b8f355647abe5f55be4b85492b9ce8937553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
test('ghcilink001',
     [when(ghci_dynamic(), expect_fail), # dynamic ghci can't load '.a's
      unless(doing_ghci, skip),
      extra_clean(['dir001/*','dir001'])],
     run_command,
     ['$MAKE -s --no-print-directory ghcilink001'])

test('ghcilink002',
     [unless(doing_ghci, skip), extra_clean(['dir002/*','dir002'])],
     run_command,
     ['$MAKE -s --no-print-directory ghcilink002'])

test('ghcilink003',
     [
       # still cannot load libstdc++ on Windows.  See also #4468.
       when(opsys('mingw32'), expect_broken(5289)),
       unless(doing_ghci, skip),
       extra_clean(['dir003/*','dir003'])
     ],
     run_command,
     ['$MAKE -s --no-print-directory ghcilink003'])

test('ghcilink004',
     [unless(doing_ghci, skip),
      extra_clean(['dir004/local.package.conf/*', 'dir004/*', 'dir004'])
     ],
     run_command,
     ['$MAKE -s --no-print-directory ghcilink004'])

test('ghcilink005',
     [unless(doing_ghci, skip),
      extra_clean(['dir005/ghcilink005.package.conf/*', 'dir005/*','dir005'])
     ],
     run_command,
     ['$MAKE -s --no-print-directory ghcilink005'])

test('ghcilink006',
     [
       # still cannot load libstdc++ on Windows.  See also #4468.
       when(opsys('mingw32'), expect_broken(5289)),
       unless(doing_ghci, skip),
       extra_clean(['dir006/ghcilink006.package.conf/*', 'dir006/*','dir006'])
     ],
     run_command,
     ['$MAKE -s --no-print-directory ghcilink006'])

test('T3333',
     [extra_clean(['T3333.o']),
     unless(doing_ghci, skip),
     unless(opsys('linux') or ghci_dynamic(), expect_broken(3333))],
     run_command,
     ['$MAKE -s --no-print-directory T3333'])

test('T1407', when(opsys('mingw32'), expect_broken(1407)),
     ghci_script, ['T1407.script'])