all.T 1.15 KB
Newer Older
1 2
test('T10138', [extra_files(['.keepme.hpc.T10138/']),
                ignore_stdout], run_command,
3
     # Using --hpcdir with an absolute path should work (exit code 0).
4
     ['{hpc} report T10138.keepme.tix --hpcdir="`pwd`/.keepme.hpc.T10138"'])
5

Ben Gamari's avatar
Ben Gamari committed
6
test('T11798', normal, makefile_test, [])
7

8 9
# Run tests below only for the hpc way.
#
10 11 12 13
# 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).
14
setTestOpts(only_ways(['hpc']))
15 16 17 18

def T2991(cmd):
  # The .mix file for the literate module should have non-zero entries.
  # The `grep` should exit with exit code 0.
thomie's avatar
thomie committed
19
  return(cmd + " && grep -q cover_me .hpc/T2991LiterateModule.mix")
20 21 22 23
test('T2991', [cmd_wrapper(T2991), extra_clean(['T2991LiterateModule.hi',
                                                'T2991LiterateModule.o'])],
              # Run with 'ghc --main'. Do not list other modules explicitly.
              multimod_compile_and_run, ['T2991', ''])
24 25

test('T17073', normal, makefile_test, ['T17073 HPC={hpc}'])