Allow specifying the mmdebstrap binary as an environment variable
This commit is contained in:
parent
cd39a44934
commit
95669ff193
1 changed files with 6 additions and 2 deletions
8
test.sh
8
test.sh
|
@ -4,6 +4,10 @@ set -eu
|
||||||
|
|
||||||
mirrordir="./mirror"
|
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"
|
mirror="http://deb.debian.org/debian"
|
||||||
rootdir=$(mktemp --directory)
|
rootdir=$(mktemp --directory)
|
||||||
nativearch=$(dpkg --print-architecture)
|
nativearch=$(dpkg --print-architecture)
|
||||||
|
@ -50,8 +54,8 @@ for dist in stable testing unstable; do
|
||||||
echo $dist $variant
|
echo $dist $variant
|
||||||
echo =========================================================
|
echo =========================================================
|
||||||
|
|
||||||
echo running ./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"
|
/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
|
stat --format=%s debian-$dist-mm.tar >> sizes
|
||||||
mkdir ./debian-$dist-mm
|
mkdir ./debian-$dist-mm
|
||||||
|
|
Loading…
Reference in a new issue