test.sh: print command that is being run

This commit is contained in:
Johannes 'josch' Schauer 2018-09-23 19:37:19 +02:00
parent c8dbb408d8
commit 5649f7d69a
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -50,6 +50,7 @@ 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"
stat --format=%s debian-$dist-mm.tar >> sizes
@ -58,6 +59,7 @@ for dist in stable testing unstable; do
sudo tar -xf ../debian-$dist-mm.tar
cd -
echo running debootstrap --merged-usr --variant=$variant $dist ./debian-$dist-debootstrap "http://localhost:8000/"
/usr/bin/time --output=timings --append --format=%e sudo debootstrap --merged-usr --variant=$variant $dist ./debian-$dist-debootstrap "http://localhost:8000/"
sudo tar --sort=name --mtime=@$SOURCE_DATE_EPOCH --clamp-mtime --numeric-owner --one-file-system -C ./debian-$dist-debootstrap -cf debian-$dist-debootstrap.tar .
sudo rm -r ./debian-$dist-debootstrap