Testsuite: for tests that use TH, omit *all* prof_ways
authorThomas Miedema <thomasmiedema@gmail.com>
Mon, 22 Feb 2016 17:55:30 +0000 (18:55 +0100)
committerThomas Miedema <thomasmiedema@gmail.com>
Thu, 25 Feb 2016 22:26:06 +0000 (23:26 +0100)
Instead of just profasm and profthreaded. And at least until
-fexternal-interpreter is the default.

Also:
  * WAY=profc doesn't exist anymore.
  * Omit all threaded_ways for conc039, not just a few.

16 files changed:
testsuite/config/ghc
testsuite/tests/annotations/should_compile/all.T
testsuite/tests/annotations/should_compile/th/all.T
testsuite/tests/annotations/should_run/all.T
testsuite/tests/concurrent/should_run/all.T
testsuite/tests/haddock/haddock_examples/test.T
testsuite/tests/overloadedrecflds/should_run/all.T
testsuite/tests/parser/should_compile/all.T
testsuite/tests/partial-sigs/should_compile/all.T
testsuite/tests/quasiquotation/qq005/test.T
testsuite/tests/quasiquotation/qq007/test.T
testsuite/tests/quasiquotation/qq008/test.T
testsuite/tests/quasiquotation/qq009/test.T
testsuite/tests/quotes/TH_spliceViewPat/test.T
testsuite/tests/rts/all.T
testsuite/tests/simplCore/should_compile/all.T

index 31b644a..7d32e35 100644 (file)
@@ -147,7 +147,7 @@ config.way_rts_flags = {
     'ghci-ext'         : [],
    }
 
-# Useful classes of ways that can be used with only_ways() and
+# Useful classes of ways that can be used with only_ways(), omit_ways() and
 # expect_broken_for().
 
 prof_ways     = [x[0] for x in config.way_flags('dummy_name').items()
index d8d6ad8..74478e9 100644 (file)
@@ -2,10 +2,7 @@
 # order for this to work with profiling, we would have to build the
 # program twice and use -osuf p_o (see the TH_spliceE5_prof test).  For
 # now, just disable the profiling ways.
-test('ann01',
-     [req_interp, omit_ways(['profasm','profthreaded'])],
-     compile,
-     ['-v0'])
+test('ann01', [req_interp, omit_ways(prof_ways)], compile, ['-v0'])
 
 """"
 Helpful things to C+P:
index 8684de2..f23009b 100644 (file)
@@ -5,7 +5,7 @@
 
 test('annth_make',
      [req_interp,
-      omit_ways(['profasm','profthreaded']),
+      omit_ways(prof_ways),
       unless(have_dynamic(),skip),
       clean_cmd('$MAKE -s clean_annth_make')],
      run_command,
@@ -13,7 +13,7 @@ test('annth_make',
 
 test('annth_compunits',
      [req_interp,
-      omit_ways(['profasm','profthreaded']),
+      omit_ways(prof_ways),
       unless(have_dynamic(),skip),
       clean_cmd('$MAKE -s clean_annth_compunits')],
      run_command,
index 17f1631..fabd08c 100644 (file)
@@ -11,7 +11,7 @@ test('annrun01',
                     'annrun01.hi', 'annrun01.o',
                     'Config.hs', 'Config.hi', 'Config.o']),
       pre_cmd('$MAKE -s --no-print-directory config'),
-      omit_ways(['profasm','profthreaded', 'dyn'])],
+      omit_ways(['dyn'] + prof_ways)],
       multimod_compile_and_run,
       ['annrun01', '-package ghc ' + config.ghc_th_way_flags]
     )
index 1dd1e1a..cc3440e 100644 (file)
@@ -208,7 +208,7 @@ test('conc038', only_ways(['threaded1','threaded2']), compile_and_run, [''])
 # Omit for GHCi, uses foreign export
 # Omit for the threaded ways, because in this case the main thread is allowed to 
 # complete, which causes the child thread to be interrupted.
-test('conc039', omit_ways(['ghci','threaded1','threaded2','profthreaded']), compile_and_run, [''])
+test('conc039', omit_ways(['ghci'] + threaded_ways), compile_and_run, [''])
 
 # Omit for GHCi, uses foreign export
 test('conc040', [exit_code(1), omit_ways(['ghci'])], compile_and_run, [''])
index c60933d..43aa20e 100644 (file)
@@ -1,5 +1,5 @@
 test('haddock.Test',
-     [omit_ways(['optasm', 'profasm']),
+     [omit_ways(prof_ways),
       extra_clean(['Test.hi', 'Test.o', 'Hidden.hi', 'Hidden.o',
                    'Visible.hi', 'Visible.o'])],
      multimod_compile,
index 019a1ef..6d0655b 100644 (file)
@@ -5,7 +5,7 @@ test('overloadedrecfldsrun02',
      extra_clean(['OverloadedRecFldsRun02_A.hi', 'OverloadedRecFldsRun02_A.o']),
      multimod_compile_and_run, ['overloadedrecfldsrun02', ''])
 test('overloadedrecfldsrun03', normal, compile_and_run, [''])
-test('overloadedrecfldsrun04', normal, compile_and_run, [''])
+test('overloadedrecfldsrun04', omit_ways(prof_ways), compile_and_run, [''])
 test('overloadedrecfldsrun05', normal, compile_and_run, [''])
 test('overloadedrecfldsrun06', normal, compile_and_run, [''])
 test('overloadedrecflds_generics', normal, compile_and_run, [''])
@@ -13,5 +13,7 @@ test('overloadedlabelsrun01', normal, compile_and_run, [''])
 test('overloadedlabelsrun02', normal, compile_and_run, [''])
 test('overloadedlabelsrun03', normal, compile_and_run, [''])
 test('overloadedlabelsrun04',
-     extra_clean(['OverloadedLabelsRun04_A.hi', 'OverloadedLabelsRun04_A.o']),
-     multimod_compile_and_run, ['overloadedlabelsrun04', ''])
+     [extra_clean(['OverloadedLabelsRun04_A.hi', 'OverloadedLabelsRun04_A.o']),
+      omit_ways(prof_ways)],
+     multimod_compile_and_run,
+     ['overloadedlabelsrun04', config.ghc_th_way_flags])
index 111f1ed..24c562e 100644 (file)
@@ -69,8 +69,8 @@ test('read054', normal, compile, [''])
 test('read055', normal, compile, [''])
 test('read056', normal, compile, [''])
 test('read057', normal, compile, [''])
-test('read058', omit_ways(['profc']), compile, [''])
-test('read059', omit_ways(['profc']), compile, [''])
+test('read058', normal, compile, [''])
+test('read059', normal, compile, [''])
 test('read060', normal, compile, [''])
 test('read061', normal, compile, [''])
 test('read062', normal, compile, [''])
index 0f5f7d9..ba25a11 100644 (file)
@@ -51,7 +51,8 @@ test('TypeFamilyInstanceLHS', normal, compile, ['-ddump-types -fno-warn-partial-
 test('Uncurry', normal, compile, ['-ddump-types -fno-warn-partial-type-signatures'])
 test('UncurryNamed', normal, compile, ['-ddump-types -fno-warn-partial-type-signatures'])
 test('WarningWildcardInstantiations', normal, compile, ['-ddump-types'])
-test('SplicesUsed', [req_interp, extra_clean(['Splices.o', 'Splices.hi'])],
+test('SplicesUsed',
+     [req_interp, extra_clean(['Splices.o', 'Splices.hi']), omit_ways(prof_ways)],
      multimod_compile, ['SplicesUsed', config.ghc_th_way_flags])
 test('TypedSplice', [req_interp, normal], compile, [''])
 test('T10403', normal, compile, [''])
index 2e457af..9c4ac5c 100644 (file)
@@ -4,7 +4,7 @@ test('qq005',
       # We'd need to jump through some hoops to run this test the
       # profiling ways, due to the TH use, so for now we just
       # omit the profiling ways
-      omit_ways(['profasm','profthreaded']),
+      omit_ways(prof_ways),
       extra_clean(['Expr.hi', 'Expr.o', 'Main.hi', 'Main.o'])],
        multimod_compile_and_run,
        ['Main', ''])
index 4d6767d..dc01dfc 100644 (file)
@@ -2,6 +2,7 @@ test('qq007',
      [when(fast(), skip),
       extra_clean(['QQ.hi', 'QQ.o', 'Test.hi', 'Test.o']),
       pre_cmd('$MAKE -s --no-print-directory TH_QQ'),
+      omit_ways(prof_ways),
       ],
      multimod_compile,
      ['Test', '-v0 ' + config.ghc_th_way_flags])
index cb1feae..33e0037 100644 (file)
@@ -2,6 +2,7 @@ test('qq008',
      [when(fast(), skip),
       extra_clean(['QQ.hi', 'QQ.o', 'Test.hi', 'Test.o']),
       pre_cmd('$MAKE -s --no-print-directory TH_QQ'),
+      omit_ways(prof_ways),
       ],
      multimod_compile,
      ['Test', '-v0 ' + config.ghc_th_way_flags])
index 7ad1ebe..fb06834 100644 (file)
@@ -2,6 +2,7 @@ test('qq009',
      [when(fast(), skip),
       extra_clean(['QQ.hi', 'QQ.o', 'Test.hi', 'Test.o']),
       pre_cmd('$MAKE -s --no-print-directory TH_QQ'),
+      omit_ways(prof_ways),
       ],
      multimod_compile,
      ['Test', '-v0 ' + config.ghc_th_way_flags])
index 3075ef4..1f802c5 100644 (file)
@@ -4,6 +4,5 @@ def f(name, opts):
 setTestOpts(f)
 
 test('TH_spliceViewPat',
-     extra_clean(['Main.o', 'Main.hi', 'A.o', 'A.hi']),
-     multimod_compile_and_run,
-     ['Main', config.ghc_th_way_flags])
+     [extra_clean(['Main.o', 'Main.hi', 'A.o', 'A.hi']), omit_ways(prof_ways)],
+     multimod_compile_and_run, ['Main', config.ghc_th_way_flags])
index 82a3a43..60513ca 100644 (file)
@@ -221,10 +221,10 @@ test('T7815', [ multi_cpu_race,
 #   ffishutdown: Main_dul: interrupted
 test('ffishutdown', [ ignore_output, only_ways(['threaded1','threaded2']) ], compile_and_run, [''])
 
-test('T7919', [extra_clean(['T7919A.o','T7919A.hi',
-                            'T7919A.dyn_o','T7919A.dyn_hi']),
-               when(fast(),skip) ],
-             compile_and_run, [config.ghc_th_way_flags])
+test('T7919',
+     [extra_clean(['T7919A.o','T7919A.hi', 'T7919A.dyn_o','T7919A.dyn_hi']),
+      when(fast(), skip), omit_ways(prof_ways)],
+     compile_and_run, [config.ghc_th_way_flags])
 
 test('T8035', normal, compile_and_run, [''])
 
index 6c0380f..52cdea7 100644 (file)
@@ -166,7 +166,7 @@ test('T7796',
      extra_clean(['T7796.prep']),
      run_command,
      ['$MAKE -s --no-print-directory T7796'])
-test('T5550', normal, compile, [''])
+test('T5550', omit_ways(prof_ways), compile, [''])
 test('T7865', normal, run_command, ['$MAKE -s --no-print-directory T7865'])
 test('T7785', only_ways(['optasm']), compile, ['-ddump-rules'])
 test('T7702',