Skip to content

Commit c1036ce

Browse files
authored
Remove preCheck used for tests running in qemu (input-output-hk#2098)
* Remove preCheck used for tests running in qemu
1 parent 73622b5 commit c1036ce

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

ci.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
135135
# ghc = pkgs.haskell-nix.compiler.${compiler-nix-name};
136136
# TODO: look into making tools work when cross compiling
137137
# inherit (build) tools;
138-
} // pkgs.lib.optionalAttrs (runTests && crossSystemName != "aarch64-multiplatform") {
139-
# Tests are broken on aarch64 cross https://github.com/input-output-hk/haskell.nix/issues/513
138+
} // pkgs.lib.optionalAttrs runTests {
140139
inherit (build) tests;
141140
})
142141
# GHCJS builds its own template haskell runner.

overlays/armv6l-linux.nix

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ final: prev:
1818
# iserv-proxy needs to come from the buildPackages, as it needs to run on the
1919
# build host.
2020
inherit (final.haskell-nix.iserv-proxy-exes.${config.compiler.nix-name}) iserv-proxy iserv-proxy-interpreter;
21-
# we need to use openssl.bin here, because the .dll's are in the .bin expression.
22-
extra-test-libs = [
23-
# pkgs.rocksdb
24-
pkgs.openssl.bin
25-
pkgs.libffi
26-
pkgs.gmp
27-
];
2821
} // {
2922
# we can perform testing of cross compiled test-suites by using wine.
3023
# Therefore let's enable doCrossCheck here!

overlays/linux-cross.nix

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
, iserv-proxy
88
, iserv-proxy-interpreter
99
, gmp
10-
, extra-test-libs ? []
1110
, buildPlatform
1211
, hostPlatform
1312
, ...
@@ -47,21 +46,6 @@ let
4746
'';
4847
testWrapper = lib.optional isLinuxCross "${qemuTestWrapper}/bin/test-wrapper";
4948

50-
preCheck = lib.optionalString isLinuxCross ''
51-
echo "================================================================="
52-
echo "RUNNING TESTS for $name via qemu-${qemuSuffix}"
53-
echo "================================================================="
54-
echo "Copying extra test libraries"
55-
for p in ${lib.concatStringsSep " " extra-test-libs}; do
56-
find "$p" -iname '*.so*' -exec cp {} . \;
57-
done
58-
'';
59-
postCheck = lib.optionalString isLinuxCross ''
60-
echo "================================================================="
61-
echo "END RUNNING TESTS"
62-
echo "================================================================="
63-
'';
64-
6549
enableShared = lib.mkDefault (!isLinuxCross);
6650

67-
in { inherit preCheck postCheck configureFlags setupBuildFlags testWrapper enableShared; }
51+
in { inherit configureFlags setupBuildFlags testWrapper enableShared; }

0 commit comments

Comments
 (0)