diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-01T15·46+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-01T15·46+0000 |
commit | e3daee919d0335d2c41fc556ff55d8289ade10d0 (patch) | |
tree | 685676f49bbc41a198ba1c66abe513077864de1f /tests | |
parent | ea9c35d3cc2ef65643718e696007ba3569099e1e (diff) |
* Test `nix-store -q --binding'.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common.sh.in | 1 | ||||
-rw-r--r-- | tests/simple.sh | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index 403e144e2dac..9766642b0011 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -27,6 +27,7 @@ export xmlflags="@xmlflags@" export xsltproc="@xsltproc@" export version=@version@ +export system=@system@ export nixinstantiate=$TOP/src/nix-instantiate/nix-instantiate export nixstore=$TOP/src/nix-store/nix-store diff --git a/tests/simple.sh b/tests/simple.sh index a2242e34e8c7..7f7b48f2d91b 100644 --- a/tests/simple.sh +++ b/tests/simple.sh @@ -2,6 +2,8 @@ source common.sh drvPath=$($nixinstantiate simple.nix) +test "$($nixstore -q --binding system "$drvPath")" = "$system" + echo "derivation is $drvPath" outPath=$($nixstore -rvv "$drvPath") |