* Test `nix-store -q --binding'.

This commit is contained in:
Eelco Dolstra 2006-03-01 15:46:22 +00:00
parent ea9c35d3cc
commit e3daee919d
2 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export xmlflags="@xmlflags@"
export xsltproc="@xsltproc@" export xsltproc="@xsltproc@"
export version=@version@ export version=@version@
export system=@system@
export nixinstantiate=$TOP/src/nix-instantiate/nix-instantiate export nixinstantiate=$TOP/src/nix-instantiate/nix-instantiate
export nixstore=$TOP/src/nix-store/nix-store export nixstore=$TOP/src/nix-store/nix-store

View File

@ -2,6 +2,8 @@ source common.sh
drvPath=$($nixinstantiate simple.nix) drvPath=$($nixinstantiate simple.nix)
test "$($nixstore -q --binding system "$drvPath")" = "$system"
echo "derivation is $drvPath" echo "derivation is $drvPath"
outPath=$($nixstore -rvv "$drvPath") outPath=$($nixstore -rvv "$drvPath")