20 lines
729 B
Nix
20 lines
729 B
Nix
# `checks.script-test-cache-pull-substitute` — runs the closure pull
|
|
# (`nix-store --realise <top> --max-jobs 0`, hive-c0re/src/cache_pull.rs)
|
|
# against two file caches: a swarm cache that has the top path and lacks a
|
|
# dependency, and the host's own substituter that has the dependency. The cases
|
|
# are in ./cache-pull-substitute.sh, which also runs hive-priv's
|
|
# `nix store copy-sigs` step against a path built in a store.
|
|
{ pkgs, ... }:
|
|
pkgs.runCommand "hyperhive-script-test-cache-pull-substitute"
|
|
{
|
|
nativeBuildInputs = [
|
|
pkgs.nix
|
|
pkgs.coreutils
|
|
pkgs.gnugrep
|
|
];
|
|
HIVE_TEST_BASH = "${pkgs.bash}/bin/bash";
|
|
}
|
|
''
|
|
${pkgs.bash}/bin/bash ${./cache-pull-substitute.sh}
|
|
touch "$out"
|
|
''
|