tests-stdenv-gcc-stageCompare: delay asserts (#427205)
This commit is contained in:
commit
00084dc3fb
@ -14,8 +14,6 @@
|
|||||||
lib,
|
lib,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.cc.isGNU;
|
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
# rebuild gcc using the "final" stdenv
|
# rebuild gcc using the "final" stdenv
|
||||||
let
|
let
|
||||||
@ -31,11 +29,23 @@ let
|
|||||||
NIX_OUTPATH_USED_AS_RANDOM_SEED = stdenv.cc.cc.out;
|
NIX_OUTPATH_USED_AS_RANDOM_SEED = stdenv.cc.cc.out;
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
assert lib.assertMsg (gcc-stageCompare ? checksum)
|
|
||||||
"tests-stdenv-gcc-stageCompare: No `checksum` output in `gcc-stageCompare` see conditional in `gcc/common/checksum.nix`";
|
(runCommand "gcc-stageCompare"
|
||||||
(runCommand "gcc-stageCompare" { } ''
|
{
|
||||||
diff -sr ${pkgs.gcc-unwrapped.checksum}/checksums ${gcc-stageCompare.checksum}/checksums && touch $out
|
checksumCompare =
|
||||||
'').overrideAttrs
|
assert lib.assertMsg (gcc-stageCompare ? checksum)
|
||||||
|
"tests-stdenv-gcc-stageCompare: No `checksum` output in `gcc-stageCompare` see conditional in `gcc/common/checksum.nix`";
|
||||||
|
gcc-stageCompare.checksum;
|
||||||
|
|
||||||
|
checksumUnwrapped =
|
||||||
|
assert lib.assertMsg (pkgs.gcc-unwrapped ? checksum)
|
||||||
|
"tests-stdenv-gcc-stageCompare: No `checksum` output in `gcc-stageCompare` see conditional in `gcc/common/checksum.nix`";
|
||||||
|
pkgs.gcc-unwrapped.checksum;
|
||||||
|
}
|
||||||
|
''
|
||||||
|
diff -sr "$checksumUnwrapped"/checksums "$checksumCompare"/checksums && touch $out
|
||||||
|
''
|
||||||
|
).overrideAttrs
|
||||||
(a: {
|
(a: {
|
||||||
meta = (a.meta or { }) // {
|
meta = (a.meta or { }) // {
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
|
|||||||
@ -176,5 +176,5 @@ in
|
|||||||
xfsprogs = linux;
|
xfsprogs = linux;
|
||||||
xkeyboard_config = linux;
|
xkeyboard_config = linux;
|
||||||
zip = all;
|
zip = all;
|
||||||
tests-stdenv-gcc-stageCompare = all;
|
tests-stdenv-gcc-stageCompare = linux;
|
||||||
}))
|
}))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user