Skip to content

Commit 4c2e5f8

Browse files
committed
Fix more tests
1 parent 29500f0 commit 4c2e5f8

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

test/cabal-hpack/package.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ executables:
2525
cabal-hpack:
2626
main: Main.hs
2727
source-dirs: app
28-
ghc-options:
29-
- -threaded
30-
- -rtsopts
31-
- -with-rtsopts=-N
28+
when:
29+
- condition: arch(wasm32)
30+
then:
31+
ghc-options: []
32+
else:
33+
ghc-options:
34+
- -threaded
35+
- -rtsopts
36+
- -with-rtsopts=-N
3237
dependencies:
3338
- cabal-hpack
3439

test/cabal-simple-prof/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ let
2929
.override (lib.optionalAttrs stdenv.hostPlatform.isAndroid { setupBuildFlags = ["--ghc-option=-optl-static" ]; });
3030

3131
in recurseIntoAttrs {
32-
# This test seeems to be broken on 8.6 and 8.8 and ghcjs
33-
meta.disabled = compiler-nix-name == "ghc865" || compiler-nix-name == "ghc884" || stdenv.hostPlatform.isGhcjs;
32+
meta.disabled = stdenv.hostPlatform.isGhcjs || stdenv.hostPlatform.isWasm;
3433
ifdInputs = {
3534
inherit (project) plan-nix;
3635
};

test/coverage/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ let
2626
crossSuffix' = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform && stdenv.hostPlatform.isStatic) "-static" + crossSuffix;
2727

2828
in recurseIntoAttrs ({
29-
# Does not work on ghcjs because it needs zlib.
30-
meta.disabled = stdenv.hostPlatform.isGhcjs
29+
# Does not work on ghcjs because it needs zlib. Wasm needs network fixed.
30+
meta.disabled = stdenv.hostPlatform.isGhcjs || stdenv.hostPlatfom.isWasm
3131
# For some reason the `.tix` file is not created on armv7a android (not sure why)
3232
|| stdenv.hostPlatform.isAndroid && stdenv.hostPlatform.isAarch32;
3333
run = stdenv.mkDerivation {

test/ghc-options/test-ghc-options.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ executable test-ghc-options-exe
1616
main-is: Main.hs
1717
build-depends: base >=4.7 && <5, test-ghc-options
1818
hs-source-dirs: app
19-
ghc-options: -threaded -rtsopts -with-rtsopts=-N
19+
if !arch(wasm32)
20+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
2021
default-language: Haskell2010

test/ghcjs-overlay/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ in recurseIntoAttrs {
1717
run = stdenv.mkDerivation {
1818
name = "ghcjs-overlay-test";
1919

20+
# Double conversion needs updating for wasm
21+
meta.disabled = stdenv.hostPlatform.isWasm;
22+
2023
buildCommand = ''
2124
exe="${packages.ghcjs-overlay-test.components.exes.ghcjs-overlay-test.exePath}"
2225
size=$(command stat --format '%s' "$exe")

test/plugin/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ in recurseIntoAttrs {
1818
inherit (project) plan-nix;
1919
};
2020

21-
# Not sure why this breaks for ghc 8.10.7
2221
meta.disabled =
2322
builtins.elem compiler-nix-name [ "ghc91320250523" ]
2423
|| stdenv.hostPlatform.isMusl
2524
|| stdenv.hostPlatform.isGhcjs
25+
|| stdenv.hostPlatform.isWasm
2626
|| stdenv.hostPlatform.isWindows
2727
|| (haskellLib.isCrossHost && (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isAarch32));
2828
build = packages.test.components.library;

0 commit comments

Comments
 (0)