Declare language extensions via `{-# LANGUAGE -#}`
[packages/unix.git] / tests / all.T
1
2 test('signals001',  normal, compile_and_run, ['-package unix -cpp'])
3 test('signals002',  only_compiler_types(['ghc']),
4         compile_and_run, ['-package unix'])
5 test('fileexist01', normal, compile_and_run, ['-package unix'])
6 test('forkprocess01', [ only_compiler_types(['ghc']),
7                         extra_ways(['threaded1_ls']) ], # test #4512
8         compile_and_run, ['-package unix'])
9
10 #
11 # user001 may fail due to this bug in glibc:
12 #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466647
13 #
14 test('user001', normal, compile_and_run, ['-package unix'])
15 test('resourceLimit', normal, compile_and_run, ['-package unix'])
16
17 x86FreeBsdFail = when(platform('i386-unknown-freebsd'), expect_fail)
18
19 test('queryfdoption01',
20     [omit_ways(['ghci']), only_compiler_types(['ghc']), x86FreeBsdFail],
21         compile_and_run, ['-package unix'])
22 test('getEnvironment01', x86FreeBsdFail, compile_and_run, ['-package unix'])
23 test('getEnvironment02', x86FreeBsdFail, compile_and_run, ['-package unix'])
24 test('getGroupEntryForName', [x86FreeBsdFail, exit_code(1)], compile_and_run,
25      ['-package unix'])
26 test('getUserEntryForName', [x86FreeBsdFail, exit_code(1)], compile_and_run,
27      ['-package unix'])
28
29
30 test('signals004', normal, compile_and_run, ['-package unix'])
31
32 if ('threaded1' in config.run_ways):
33    only_threaded_ways = only_ways(['ghci','threaded1','threaded2'])
34 else:
35    only_threaded_ways = skip
36
37 test('fdReadBuf001', only_threaded_ways, compile_and_run, ['-package unix'])
38
39 test('fileStatus',
40      extra_clean(['dir', 'regular', 'link-dir', 'link-regular']),
41      compile_and_run,
42      ['-package unix'])
43
44 test('fileStatusByteString',
45      extra_clean(['dir', 'regular', 'link-dir', 'link-regular']),
46      compile_and_run,
47      ['-package unix'])
48
49
50 test('T1185', normal, compile_and_run, ['-package unix'])
51
52 # This test fails for me on x86/Linux with a "does not exist" error.
53 # Running with strace shows it is trying to talk to winbindd (part of
54 # Samba), so I think the failure has nothing to do with GHC.  Also it
55 # works on a different machine that doesn't have Samba installed.
56 #  --SDM 18/05/2010
57 test('T3816', normal, compile_and_run, ['-package unix'])
58
59 test('processGroup001', normal, compile_and_run, ['-package unix'])
60 test('processGroup002', normal, compile_and_run, ['-package unix'])
61 test('executeFile001', omit_ways(prof_ways), compile_and_run, ['-package unix'])
62
63 test('T8108', normal, compile_and_run, ['-package unix'])