Add prep_smoke.sh hack script.
[dcpomatic.git] / hacks / prep_smoke.sh
1 DCP=$HOME/DCP/Examples/xm
2 KEY=$HOME/dcpomatic-infrastructure/keys/test-vm-id_rsa
3 targets="centos-7-64 centos-8-64 debian-9-64 debian-10-64 ubuntu-16.04-32 ubuntu-16.04-64 ubuntu-18.04-64 ubuntu-20.04-64 ubuntu-20.10-64 ubuntu-21.04-64 fedora-32-64 fedora-33-64 fedora-34-64"
4
5 opts="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $KEY"
6
7 for t in $targets; do
8         host=$(echo $t | sed "s/\./-/g")
9         ping -c 1 $host.local
10         if [ "$?" == "0" ]; then
11                 scp $opts -r $DCP $host.local:
12                 scp $opts -r $t/* $host.local:
13         fi
14 done