Add benchmarking test scripts.
[libguestfs-talks.git] / 2021-pipelines / benchmarking / testB4.sh
1 #!/bin/bash
2 set -x
3 set -e
4
5 source settings.sh
6
7 nbdkit -f --exit-with-parent --filter=tar file $ova tar-entry=fedora-33.img &
8 sleep 0.5
9 qemu-img create -f qcow2 -b nbd:localhost:10809 snapshot.qcow2
10 virt-sparsify --inplace snapshot.qcow2
11 qemu-img convert -f qcow2 snapshot.qcow2 -O raw local.img