Move bsc-ci test into let
Reviewed-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
parent
2f2d6cbea8
commit
34f4b6aa37
66
overlay.nix
66
overlay.nix
@ -46,38 +46,6 @@ let
|
|||||||
wxparaver = callPackage ./pkgs/paraver/default.nix { };
|
wxparaver = callPackage ./pkgs/paraver/default.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
pkgs = filterAttrs (_: isDerivation) bscPkgs;
|
|
||||||
|
|
||||||
crossTargets = [ "riscv64" ];
|
|
||||||
cross = prev.lib.genAttrs crossTargets (target:
|
|
||||||
final.pkgsCross.${target}.bsc-ci.pkgs
|
|
||||||
);
|
|
||||||
|
|
||||||
buildList = name: paths:
|
|
||||||
final.runCommandLocal name { } ''
|
|
||||||
printf '%s\n' ${toString paths} | tee $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildList' = name: paths:
|
|
||||||
final.runCommandLocal name { } ''
|
|
||||||
deps="${toString paths}"
|
|
||||||
cat $deps
|
|
||||||
printf '%s\n' $deps >$out
|
|
||||||
'';
|
|
||||||
|
|
||||||
crossList = builtins.mapAttrs (t: v: buildList t (builtins.attrValues v)) cross;
|
|
||||||
|
|
||||||
pkgsList = buildList "ci-pkgs" (builtins.attrValues pkgs);
|
|
||||||
tests = buildList "ci-tests" (collect isDerivation final.bsc-ci.test);
|
|
||||||
|
|
||||||
all = buildList' "ci-all" [ pkgsList tests ];
|
|
||||||
|
|
||||||
in bscPkgs // {
|
|
||||||
# Prevent accidental usage of bsc attribute
|
|
||||||
bsc = throw "the bsc attribute is deprecated, packages are now in the root";
|
|
||||||
|
|
||||||
# Internal for our CI tests
|
|
||||||
bsc-ci = {
|
|
||||||
test = rec {
|
test = rec {
|
||||||
#hwloc = callPackage ./test/bugs/hwloc.nix { }; # Broken, no /sys
|
#hwloc = callPackage ./test/bugs/hwloc.nix { }; # Broken, no /sys
|
||||||
#sigsegv = callPackage ./test/reproducers/sigsegv.nix { };
|
#sigsegv = callPackage ./test/reproducers/sigsegv.nix { };
|
||||||
@ -111,8 +79,40 @@ in bscPkgs // {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit tests;
|
pkgs = filterAttrs (_: isDerivation) bscPkgs;
|
||||||
|
|
||||||
|
crossTargets = [ "riscv64" ];
|
||||||
|
cross = prev.lib.genAttrs crossTargets (target:
|
||||||
|
final.pkgsCross.${target}.bsc-ci.pkgs
|
||||||
|
);
|
||||||
|
|
||||||
|
buildList = name: paths:
|
||||||
|
final.runCommandLocal name { } ''
|
||||||
|
printf '%s\n' ${toString paths} | tee $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildList' = name: paths:
|
||||||
|
final.runCommandLocal name { } ''
|
||||||
|
deps="${toString paths}"
|
||||||
|
cat $deps
|
||||||
|
printf '%s\n' $deps >$out
|
||||||
|
'';
|
||||||
|
|
||||||
|
crossList = builtins.mapAttrs (t: v: buildList t (builtins.attrValues v)) cross;
|
||||||
|
|
||||||
|
pkgsList = buildList "ci-pkgs" (builtins.attrValues pkgs);
|
||||||
|
tests = buildList "ci-tests" (collect isDerivation test);
|
||||||
|
|
||||||
|
all = buildList' "ci-all" [ pkgsList tests ];
|
||||||
|
|
||||||
|
in bscPkgs // {
|
||||||
|
# Prevent accidental usage of bsc attribute
|
||||||
|
bsc = throw "the bsc attribute is deprecated, packages are now in the root";
|
||||||
|
|
||||||
|
# Internal for our CI tests
|
||||||
|
bsc-ci = {
|
||||||
inherit pkgs pkgsList;
|
inherit pkgs pkgsList;
|
||||||
|
inherit test tests;
|
||||||
inherit cross crossList;
|
inherit cross crossList;
|
||||||
inherit all;
|
inherit all;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user