From 95669ff193b0a847f3a09e4bc5ee7573f80bdadc Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 24 Sep 2018 20:08:31 +0200 Subject: [PATCH] Allow specifying the mmdebstrap binary as an environment variable --- test.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index b6e85d0..a0501e2 100755 --- a/test.sh +++ b/test.sh @@ -4,6 +4,10 @@ set -eu mirrordir="./mirror" +# by default, use the mmdebstrap executable in the current directory but allow +# overwriting the location +: "${mmdebstrap:=./mmdebstrap}" + mirror="http://deb.debian.org/debian" rootdir=$(mktemp --directory) nativearch=$(dpkg --print-architecture) @@ -50,8 +54,8 @@ for dist in stable testing unstable; do echo $dist $variant echo ========================================================= - echo running ./mmdebstrap --variant=$variant --mode=unshare $dist debian-$dist-mm.tar "http://localhost:8000" - /usr/bin/time --output=timings --append --format=%e ./mmdebstrap --variant=$variant --mode=unshare $dist debian-$dist-mm.tar "http://localhost:8000" + echo running $mmdebstrap --variant=$variant --mode=unshare $dist debian-$dist-mm.tar "http://localhost:8000" + /usr/bin/time --output=timings --append --format=%e $mmdebstrap --variant=$variant --mode=unshare $dist debian-$dist-mm.tar "http://localhost:8000" stat --format=%s debian-$dist-mm.tar >> sizes mkdir ./debian-$dist-mm