[Git][ghc/ghc][wip/js-staging] testsuite: disable tests that cause OOM on JS
doyougnu (@doyougnu)
gitlab at gitlab.haskell.org
Tue Oct 18 19:12:09 UTC 2022
doyougnu pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC
Commits:
b569499c by doyougnu at 2022-10-18T15:07:48-04:00
testsuite: disable tests that cause OOM on JS
These tests require the JS Backend to implement GHCJS's compactor, until
that happens nodejs throws an exception that variable names are too
long, hence we disable them.
- - - - -
11 changed files:
- testsuite/tests/cabal/t20242/all.T
- testsuite/tests/driver/recomp007/all.T
- testsuite/tests/driver/recompChangedPackage/all.T
- testsuite/tests/driver/recompTHpackage/all.T
- testsuite/tests/ghc-api/all.T
- testsuite/tests/ghc-api/annotations-literals/all.T
- testsuite/tests/ghc-api/apirecomp001/all.T
- testsuite/tests/ghc-api/downsweep/all.T
- testsuite/tests/patsyn/should_compile/T13350/all.T
- testsuite/tests/typecheck/T13168/all.T
- testsuite/tests/typecheck/bug1465/all.T
Changes:
=====================================
testsuite/tests/cabal/t20242/all.T
=====================================
@@ -4,6 +4,6 @@ else:
cleanup = 'CLEANUP=0'
test('T20242',
- [extra_files(['Setup.hs', 'BootNoHeader.cabal','Foo.hs', 'Foo.hs-boot', 'Main.hs'])],
+ [extra_files(['Setup.hs', 'BootNoHeader.cabal','Foo.hs', 'Foo.hs-boot', 'Main.hs']), js_skip],
run_command,
['$MAKE -s --no-print-directory T20242 ' + cleanup])
=====================================
testsuite/tests/driver/recomp007/all.T
=====================================
@@ -2,6 +2,8 @@
# See the patch
# "Fix a recompilation checking bug when a package dependency changes"
-test('recomp007', [extra_files(['Setup.hs', 'a1/', 'a2/', 'b/'])
+test('recomp007', [ extra_files(['Setup.hs', 'a1/', 'a2/', 'b/'])
, when(fast(), skip)
- , normalise_slashes], makefile_test, [])
+ , normalise_slashes
+ , js_skip
+ ], makefile_test, [])
=====================================
testsuite/tests/driver/recompChangedPackage/all.T
=====================================
@@ -13,7 +13,10 @@ if not config.compiler_profiled and config.have_dynamic:
else:
dyn = '--disable-shared'
-test('recompChangedPackage', [extra_files(['q', 'Main.hs', 'Setup.hs', 'PLib1.hs']),
- when(fast(), skip)],
+test('recompChangedPackage',
+ [ extra_files(['q', 'Main.hs', 'Setup.hs', 'PLib1.hs']),
+ js_skip,
+ when(fast(), skip)
+ ],
run_command,
['$MAKE -s --no-print-directory recompChangedPackage VANILLA=' + vanilla + ' PROF=' + prof + ' DYN=' + dyn])
=====================================
testsuite/tests/driver/recompTHpackage/all.T
=====================================
@@ -14,6 +14,7 @@ else:
dyn = '--disable-shared'
test('recompTHpackage', [extra_files(['p', 'q', 'Setup.hs']),
- when(fast(), skip)],
+ when(fast(), skip),
+ js_skip],
run_command,
['$MAKE -s --no-print-directory recompTHpackage VANILLA=' + vanilla + ' PROF=' + prof + ' DYN=' + dyn])
=====================================
testsuite/tests/ghc-api/all.T
=====================================
@@ -1,5 +1,5 @@
test('ghcApi', normal, compile_and_run, ['-package ghc'])
-test('T6145', normal, makefile_test, ['T6145'])
+test('T6145', js_skip, makefile_test, ['T6145'])
test('T8639_api', req_rts_linker,
makefile_test, ['T8639_api'])
test('T8628', req_rts_linker,
=====================================
testsuite/tests/ghc-api/annotations-literals/all.T
=====================================
@@ -1,2 +1,2 @@
-test('literals', [normalise_slashes, extra_files(['LiteralsTest.hs'])], makefile_test, ['literals'])
-test('parsed', [extra_files(['LiteralsTest2.hs'])], makefile_test, ['parsed'])
+test('literals', [normalise_slashes, extra_files(['LiteralsTest.hs']), js_skip], makefile_test, ['literals'])
+test('parsed', [extra_files(['LiteralsTest2.hs']), js_skip], makefile_test, ['parsed'])
=====================================
testsuite/tests/ghc-api/apirecomp001/all.T
=====================================
@@ -1,3 +1,4 @@
test('apirecomp001',
- extra_files(['A.hs', 'B.hs', 'myghc.hs']),
+ [extra_files(['A.hs', 'B.hs', 'myghc.hs']),
+ js_skip],
makefile_test, ['apirecomp001'])
=====================================
testsuite/tests/ghc-api/downsweep/all.T
=====================================
@@ -1,6 +1,7 @@
test('PartialDownsweep',
[ extra_run_opts('"' + config.libdir + '"')
, ignore_stderr
+ , js_skip
],
compile_and_run,
['-package ghc -package exceptions'])
=====================================
testsuite/tests/patsyn/should_compile/T13350/all.T
=====================================
@@ -1,5 +1,6 @@
# Test that importing COMPLETE sets from external packages works
test('T13350',
- extra_files(['T13350.hs', 'boolean']),
+ [extra_files(['T13350.hs', 'boolean']),
+ js_skip],
makefile_test, ['T13350'])
=====================================
testsuite/tests/typecheck/T13168/all.T
=====================================
@@ -1,3 +1,3 @@
test('T13168',
- [extra_files(['package1', 'package2', 'Setup.hs'])],
+ [extra_files(['package1', 'package2', 'Setup.hs']), js_skip],
makefile_test, [])
=====================================
testsuite/tests/typecheck/bug1465/all.T
=====================================
@@ -1 +1 @@
-test('bug1465', [extra_files(['B1.hs', 'B2.hs', 'C.hs', 'v1/', 'v2/'])], makefile_test, [])
+test('bug1465', [extra_files(['B1.hs', 'B2.hs', 'C.hs', 'v1/', 'v2/']), js_skip], makefile_test, [])
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b569499c8bf72fa2f01c66f949e9d1cb2701f684
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b569499c8bf72fa2f01c66f949e9d1cb2701f684
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221018/9b5e6356/attachment-0001.html>
More information about the ghc-commits
mailing list