testsuite: Fix `./validate --slow`
authorAlp Mestanogullari <alp@well-typed.com>
Thu, 19 Apr 2018 16:40:21 +0000 (12:40 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 19 Apr 2018 17:18:15 +0000 (13:18 -0400)
This fixes all unexpected passes and unexpected failures from a
`./validate --slow` run I did last week. I commented on many
tickets and created a few more as I was going through the failing
tests. A summary of the entire process is available at:

  https://gist.github.com/alpmestan/c371840968f086c8dc5b56af8325f0a9

This is part of an attempt to have `./validate --slow` pass,
tracked in #14890. Another patch will be necessary for the unexpected
stats failures.

Test Plan: ./validate --slow (not green yet)

Reviewers: bgamari, simonmar

Subscribers: thomie, carter

Differential Revision: https://phabricator.haskell.org/D4546

15 files changed:
testsuite/tests/codeGen/should_run/all.T
testsuite/tests/deSugar/should_run/all.T
testsuite/tests/dependent/should_compile/all.T
testsuite/tests/driver/all.T
testsuite/tests/numeric/should_compile/all.T
testsuite/tests/parser/should_compile/all.T
testsuite/tests/patsyn/should_run/all.T
testsuite/tests/rename/should_compile/all.T
testsuite/tests/rts/all.T
testsuite/tests/simplCore/should_compile/T13543.stderr
testsuite/tests/simplCore/should_compile/all.T
testsuite/tests/simplCore/should_fail/all.T
testsuite/tests/th/all.T
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_run/all.T

index 55386e4..2495c1d 100644 (file)
@@ -90,13 +90,11 @@ test('T3677', extra_run_opts('+RTS -K8k -RTS'), compile_and_run, [''])
 test('T4441', normal, compile_and_run, [''])
 test('T5149', omit_ways(['ghci']), multi_compile_and_run,
                  ['T5149', [('T5149_cmm.cmm', '')], ''])
-
 test('T5129',
      # The bug is in simplifier when run with -O1 and above, so only run it
      # optimised, using any backend.
      only_ways(['optasm']),
      compile_and_run, [''])
-
 test('T5626', exit_code(1), compile_and_run, [''])
 test('T5747', when(arch('i386'), extra_hc_opts('-msse2')), compile_and_run, ['-O2'])
 test('T5785', normal, compile_and_run, [''])
index c289c01..757d817 100644 (file)
@@ -16,7 +16,9 @@ test('dsrun010', normal, compile_and_run, [''])
 test('dsrun011', when(fast(), skip), compile_and_run, [''])
 test('dsrun012', when(fast(), skip), compile_and_run, [''])
 test('dsrun013', normal, compile_and_run, [''])
-test('dsrun014', normal, compile_and_run, ['-fobject-code'])
+test('dsrun014', expect_broken_for(14901,
+                   ['hpc', 'dyn', 'optasm', 'optllvm', 'threaded2']
+                ), compile_and_run, ['-fobject-code'])
 test('dsrun015', normal, compile_and_run, [''])
 test('dsrun016', normal, compile_and_run, [''])
 test('dsrun017', normal, compile_and_run, [''])
index 701e187..5874d2e 100644 (file)
@@ -10,10 +10,7 @@ test('RaeBlogPost', normal, compile, [''])
 test('mkGADTVars', normal, compile, [''])
 test('TypeLevelVec',normal,compile, [''])
 test('T9632', normal, compile, [''])
-# Simon says in #11330: The "simplifier ticks exhausted" error is expected;
-# see Section 7 of the paper:
-# http://research.microsoft.com/en-us/um/people/simonpj/papers/haskell-dynamic/
-test('dynamic-paper', expect_fail_for(['optasm', 'optllvm']), compile, [''])
+test('dynamic-paper', normal, compile, ['']) # see #11330
 test('T11311', normal, compile, [''])
 test('T11405', normal, compile, [''])
 test('T11241', normal, compile, [''])
index c07badb..ba177c1 100644 (file)
@@ -172,8 +172,8 @@ fobject_code = when(doing_ghci(), extra_hc_opts('-fobject-code'))
 
 test( 'T4114a', fobject_code, compile_and_run, ['-cpp'])
 test( 'T4114b', fobject_code, compile_and_run, ['-no-keep-hi-files'])
-test( 'T4114c', fobject_code, compile_and_run, ['-no-keep-o-files'])
-test( 'T4114d', fobject_code, compile_and_run,
+test( 'T4114c', [fobject_code, expect_broken_for(4114, ['ghci'])], compile_and_run, ['-no-keep-o-files'])
+test( 'T4114d', [fobject_code, expect_broken_for(4114, ['ghci'])], compile_and_run,
      ['-hisuf .myhi -osuf .myo -no-keep-o-files'])
 
 test('T5584', [], run_command, ['$MAKE -s --no-print-directory T5584'])
index ea42aad..56e319f 100644 (file)
@@ -1,5 +1,5 @@
 test('T7116', normal, run_command, ['$MAKE -s --no-print-directory T7116'])
 test('T7895', normal, compile, [''])
 test('T7881', normal, compile, [''])
-test('T8542', normal, compile, [''])
+test('T8542', omit_ways(['hpc']), compile, [''])
 test('T10929', normal, compile, [''])
index 1ca6d7e..f323976 100644 (file)
@@ -41,7 +41,7 @@ test('read025', normal, compile, [''])
 test('read026', normal, compile, [''])
 test('read027', normal, compile, [''])
 test('read028', normal, compile, [''])
-test('read029', expect_broken_for(10181, ['optasm', 'optllvm']), compile, [''])
+test('read029', normal, compile, [''])
 test('read030', normal, compile, [''])
 test('read031', normal, compile, [''])
 test('read032', normal, compile, [''])
index b087439..878a7b0 100644 (file)
@@ -15,4 +15,5 @@ test('ghci', just_ghci, ghci_script, ['ghci.script'])
 test('T11985', just_ghci, ghci_script, ['T11985.script'])
 test('T11224', normal, compile_and_run, [''])
 test('T13688', normal, multimod_compile_and_run, ['T13688', '-v0'])
-test('T14228', normal, compile_and_run, [''])
+# Requires UnboxedSums, which GHCi does not support.
+test('T14228', omit_ways(['ghci']), compile_and_run, [''])
index 80bcb09..1797c28 100644 (file)
@@ -33,7 +33,7 @@ test('rn037', normal, compile, [''])
 
 test('rn039', normal, compile, [''])
 test('rn040', normal, compile, ['-fwarn-unused-binds -fwarn-unused-matches'])
-test('rn041', expect_broken_for(10181, ['optasm', 'optllvm']), compile, [''])
+test('rn041', normal, compile, [''])
 test('rn042', [extra_files(['Rn042_A.hs'])], multimod_compile, ['rn042', '-v0'])
 test('rn043', [extra_files(['Rn043_A.hs', 'Rn043_B.hs'])], multimod_compile, ['rn043', '-v0'])
 test('rn044', [extra_files(['Rn044_A.hs', 'Rn044_B.hs'])], multimod_compile, ['rn044', '-v0'])
index ffbd05c..a278388 100644 (file)
@@ -74,7 +74,9 @@ test('T2047', [ignore_stdout, extra_run_opts('+RTS -c -RTS')],
 
 # Blackhole-detection test.
 # Skip GHCi due to #2786
-test('T2783', [ omit_ways(['ghci']), exit_code(1) ], compile_and_run, [''])
+test('T2783', [ omit_ways(['ghci']), exit_code(1)
+              , expect_broken_for(2783, ['threaded1'])
+             ], compile_and_run, [''])
 
 # Test the work-stealing deque implementation.  We run this test in
 # both threaded1 (-threaded -debug) and threaded2 (-threaded) ways.
@@ -98,7 +100,9 @@ test('stack003', [ omit_ways('ghci'), # uses unboxed tuples
                  compile_and_run, [''])
 
 # Test that +RTS -K0 (e.g. no stack limit) parses correctly
-test('stack004', [extra_run_opts('+RTS -K0 -RTS') ], compile_and_run, [''])
+test('stack004', [ extra_run_opts('+RTS -K0 -RTS')
+                , expect_broken_for(14913, ['ghci'])
+                ], compile_and_run, [''])
 
 test('atomicinc', [ c_src, only_ways(['normal','threaded1', 'threaded2']) ], compile_and_run, [''])
 test('atomicxchg', [ c_src, only_ways(['threaded1', 'threaded2']) ],
index 0519ecb..69f6808 100644 (file)
@@ -1 +1,11 @@
\ No newline at end of file
+==================== Strictness signatures ====================
+Foo.$trModule: m
+Foo.f: <S(S),1*U(1*U)><S(S),1*U(U)><S(S),1*U(U)>m
+Foo.g: <S(S(S)S(S)),1*U(1*U(U),1*U(U))>m
+
+
+
+==================== Strictness signatures ====================
+Foo.$trModule: m
+Foo.f: <S(S),1*U(1*U)><S(S),1*U(U)><S(S),1*U(U)>m
+Foo.g: <S(S(S)S(S)),1*U(1*U(U),1*U(U))>m
\ No newline at end of file
index 8398a4d..bdab099 100644 (file)
@@ -258,7 +258,7 @@ test('T13468',
      normal,
      run_command,
      ['$MAKE -s --no-print-directory T13468'])
-test('T13543', normal, compile, ['-ddump-str-signatures'])
+test('T13543', only_ways(['optasm']), compile, ['-ddump-str-signatures'])
 test('T11272',
      normal,
      run_command,
index 2af9887..8be9a2c 100644 (file)
@@ -1,3 +1,3 @@
 test('T7411', [expect_broken_for(7411, ['optasm', 'optllvm',
-                                        'hpc', 'threaded2', 'dyn']),
+                                        'threaded2', 'dyn']),
                exit_code(1)], compile_and_run, [''])
index badb194..2b6e517 100644 (file)
@@ -382,7 +382,7 @@ test('T13018', normal, compile, ['-v0'])
 test('T13123', normal, compile, ['-v0'])
 test('T13098', normal, compile, ['-v0'])
 test('T11046', normal, multimod_compile, ['T11046','-v0'])
-test('T13366', normal, compile_and_run, ['-lstdc++ -v0'])
+test('T13366', expect_broken_for(13366, ['ghci']), compile_and_run, ['-lstdc++ -v0'])
 test('T13473', normal, multimod_compile_and_run,
      ['T13473.hs', '-v0 ' + config.ghc_th_way_flags])
 test('T13587', expect_broken(13587), compile_and_run, ['-v0'])
index 6be32f6..70e52cf 100644 (file)
@@ -165,7 +165,7 @@ test('tc161', normal, compile, [''])
 test('tc162', normal, compile, [''])
 test('tc163', normal, compile, [''])
 test('tc164', normal, compile, [''])
-test('tc165', expect_broken_for(10181, ['optasm', 'optllvm']), compile, [''])
+test('tc165', normal, compile, [''])
 test('tc166', normal, compile, [''])
 test('tc167', normal, compile, [''])
 test('tc168', normal, compile_fail, [''])
@@ -591,7 +591,7 @@ test('MissingExportList01', normal, compile, [''])
 test('MissingExportList02', normal, compile, [''])
 test('T14488', normal, compile, [''])
 test('T14590', normal, compile, ['-fdefer-type-errors -fno-max-valid-substitutions'])
-test('T13032', normal, compile, [''])
+test('T13032', omit_ways(['hpc']), compile, [''])
 test('T14273', normal, compile, ['-fdefer-type-errors -fno-max-valid-substitutions'])
 test('T14732', normal, compile, [''])
 test('T14774', [], run_command, ['$MAKE -s --no-print-directory T14774'])
index c38e7ac..c4eb3df 100755 (executable)
@@ -114,9 +114,9 @@ test('TypeOf', normal, compile_and_run, [''])
 test('TypeRep', normal, compile_and_run, [''])
 test('T11120', normal, compile_and_run, [''])
 test('KindInvariant', normal, ghci_script, ['KindInvariant.script'])
-test('StrictPats', normal, compile_and_run, [''])
-test('T12809', normal, compile_and_run, [''])
-test('EtaExpandLevPoly', normal, compile_and_run, [''])
+test('StrictPats', omit_ways(['ghci']), compile_and_run, [''])
+test('T12809', omit_ways(['ghci']), compile_and_run, [''])
+test('EtaExpandLevPoly', omit_ways(['ghci']), compile_and_run, [''])
 test('TestTypeableBinary', normal, compile_and_run, [''])
 test('Typeable1', normal, compile_fail, [''])
 test('TypeableEq', normal, compile_and_run, [''])