* Add a test case for comparing derivations.

This commit is contained in:
Eelco Dolstra 2012-01-19 22:10:24 +00:00
parent ddd0ce534a
commit 126c7317bc
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1 @@
[ true true true false ]

View 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) ]