Author: eelco
Date: Wed Nov 17 14:39:02 2010
New Revision: 24736
URL: https://svn.nixos.org/websvn/nix/?rev=24736&sc=1

Log:
* Test that download sizes are shown correctly.

Modified:
   nix/branches/sqlite/tests/substituter.sh
   nix/branches/sqlite/tests/substitutes.sh

Modified: nix/branches/sqlite/tests/substituter.sh
==============================================================================
--- nix/branches/sqlite/tests/substituter.sh    Wed Nov 17 14:35:14 2010        
(r24735)
+++ nix/branches/sqlite/tests/substituter.sh    Wed Nov 17 14:39:02 2010        
(r24736)
@@ -16,8 +16,8 @@
             echo 1
             echo "" # deriver
             echo 0 # nr of refs
-            echo 0 # download size
-            echo 0 # nar size
+            echo $((1 * 1024 * 1024)) # download size
+            echo $((2 * 1024 * 1024)) # nar size
         else
             echo "bad command $cmd"
             exit 1

Modified: nix/branches/sqlite/tests/substitutes.sh
==============================================================================
--- nix/branches/sqlite/tests/substitutes.sh    Wed Nov 17 14:35:14 2010        
(r24735)
+++ nix/branches/sqlite/tests/substitutes.sh    Wed Nov 17 14:39:02 2010        
(r24736)
@@ -14,6 +14,8 @@
 
 export NIX_SUBSTITUTERS=$(pwd)/substituter.sh
 
+$nixstore -r "$drvPath" --dry-run 2>&1 | grep -q "1.00 MiB.*2.00 MiB"
+
 $nixstore -rvv "$drvPath"
 
 text=$(cat "$outPath"/hello)
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to