From bf658f016ff16af79535358c8e609a933b86e6d7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 17 Nov 2010 14:39:02 +0000 Subject: * Test that download sizes are shown correctly. --- tests/substituter.sh | 4 ++-- tests/substitutes.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/substituter.sh b/tests/substituter.sh index 8985982c2dd8..65c4fa1856d0 100755 --- a/tests/substituter.sh +++ b/tests/substituter.sh @@ -16,8 +16,8 @@ if test $1 = "--query"; then 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 diff --git a/tests/substitutes.sh b/tests/substitutes.sh index 042827314bd9..b48576c8c302 100644 --- a/tests/substitutes.sh +++ b/tests/substitutes.sh @@ -14,6 +14,8 @@ echo $outPath > $TEST_ROOT/sub-paths 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) -- cgit 1.4.1