2011-11-09 22:26:23 +01:00
#!/bin/bash
exec 2>& 1
2011-11-19 00:45:37 +01:00
target = "airtime_git_branch"
2011-11-21 02:32:39 +01:00
#airtime_versions=("" "airtime_182_tar" "airtime_194_tar")
2011-11-22 18:22:34 +01:00
airtime_versions = ( "" "airtime_182_tar" "airtime_195_tar" )
#ubuntu_versions=("ubuntu_lucid_32" "ubuntu_lucid_64" "ubuntu_maverick_32" "ubuntu_maverick_64" "ubuntu_natty_32" "ubuntu_natty_64" "ubuntu_oneiric_32" "ubuntu_oneiric_64" "debian_squeeze_32" "debian_squeeze_64")
ubuntu_versions = ( "ubuntu_natty_32" "ubuntu_natty_64" )
2011-11-09 22:26:23 +01:00
num1 = ${# ubuntu_versions [@] }
num2 = ${# airtime_versions [@] }
2011-11-10 21:45:35 +01:00
mkdir -p ./upgrade_logs
2011-11-09 22:26:23 +01:00
for i in $( seq 0 $(( $num1 - 1 )) ) ;
do
for j in $( seq 0 $(( $num2 - 1 )) ) ;
do
2011-11-09 23:31:59 +01:00
echo fab -f fab_setup.py ${ ubuntu_versions [ $i ] } ${ airtime_versions [ $j ] } $target shutdown
2011-11-10 21:45:35 +01:00
fab -f fab_release_test.py ${ ubuntu_versions [ $i ] } ${ airtime_versions [ $j ] } $target shutdown 2>& 1 | tee " ./upgrade_logs/ ${ ubuntu_versions [ $i ] } _ ${ airtime_versions [ $j ] } _ $target .log "
2011-11-09 22:26:23 +01:00
done
done