3 system ? builtins.currentSystem,
4 pkgs ? import nixpkgs {
9 nixVersions ? import ../../tests/nix-for-tests.nix { inherit pkgs; },
15 pkgs.runCommand "lib-path-tests" {
23 # Needed to make Nix evaluation work
24 export TEST_ROOT=$(pwd)/test-tmp
25 export NIX_BUILD_HOOK=
26 export NIX_CONF_DIR=$TEST_ROOT/etc
27 export NIX_LOCALSTATE_DIR=$TEST_ROOT/var
28 export NIX_LOG_DIR=$TEST_ROOT/var/log/nix
29 export NIX_STATE_DIR=$TEST_ROOT/var/nix
30 export NIX_STORE_DIR=$TEST_ROOT/store
34 export TEST_LIB=$PWD/lib
36 echo "Running unit tests lib/path/tests/unit.nix"
37 nix-instantiate --eval --show-trace \
38 --argstr libpath "$TEST_LIB" \
39 lib/path/tests/unit.nix
41 echo "Running property tests lib/path/tests/prop.sh"
42 bash lib/path/tests/prop.sh ${toString seed}