mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
* Add a test case for comparing derivations.
This commit is contained in:
parent
ddd0ce534a
commit
126c7317bc
2 changed files with 11 additions and 0 deletions
1
tests/lang/eval-okay-eq-derivations.exp
Normal file
1
tests/lang/eval-okay-eq-derivations.exp
Normal file
|
@ -0,0 +1 @@
|
|||
[ true true true false ]
|
10
tests/lang/eval-okay-eq-derivations.nix
Normal file
10
tests/lang/eval-okay-eq-derivations.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
|
||||
drvA1 = derivation { name = "a"; builder = "/foo"; system = "i686-linux"; };
|
||||
drvA2 = derivation { name = "a"; builder = "/foo"; system = "i686-linux"; };
|
||||
drvA3 = derivation { name = "a"; builder = "/foo"; system = "i686-linux"; } // { dummy = 1; };
|
||||
|
||||
drvC1 = derivation { name = "c"; builder = "/foo"; system = "i686-linux"; };
|
||||
drvC2 = derivation { name = "c"; builder = "/bar"; system = "i686-linux"; };
|
||||
|
||||
in [ (drvA1 == drvA1) (drvA1 == drvA2) (drvA1 == drvA3) (drvC1 == drvC2) ]
|
Loading…
Reference in a new issue