summaryrefslogtreecommitdiff
path: root/testsuite/tests/hpc/all.T
blob: 2e2e7710a9c8ca0045adc177f8433db648b7095a (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
test('T10138', [extra_files(['.keepme.hpc.T10138/']),
                ignore_stdout], run_command,
     # Using --hpcdir with an absolute path should work (exit code 0).
     ['{hpc} report T10138.keepme.tix --hpcdir="`pwd`/.keepme.hpc.T10138"'])

test('T11798', normal, makefile_test, [])

# Run tests below only for the hpc way.
#
# Do not explicitly specify '-fhpc' in extra_hc_opts, unless also setting
# '-hpcdir' to a different value for each test. Only the `hpc` way does this
# automatically. This way the tests in this directory can be run concurrently
# (Main.mix might overlap otherwise).
setTestOpts(only_ways(['hpc']))

def T2991(cmd):
  # The .mix file for the literate module should have non-zero entries.
  # The `grep` should exit with exit code 0.
  return(cmd + " && grep -q cover_me .hpc/T2991LiterateModule.mix")
test('T2991', [cmd_wrapper(T2991)],
              # Run with 'ghc --main'. Do not list other modules explicitly.
              multimod_compile_and_run, ['T2991', ''])

test('T17073', when(opsys('mingw32'), expect_broken(17607)),
     makefile_test, ['T17073 HPC={hpc}'])

test('T20568', normal, makefile_test, [])