Update releast test automation scripts
This commit is contained in:
parent
2dc7d35f57
commit
a3819128ab
2 changed files with 104 additions and 11 deletions
|
@ -2,11 +2,12 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
target="airtime_git_branch:airtime-2.0.0-RC1"
|
||||
airtime_versions=("" "airtime_180_tar" "airtime_181_tar" "airtime_182_tar" "airtime_190_tar" "airtime_191_tar" "airtime_192_tar" "airtime_193_tar" "airtime_194_tar" "airtime_195_tar")
|
||||
target="airtime_git_branch:devel"
|
||||
#target="airtime_git_branch:airtime-2.0.0-RC1"
|
||||
airtime_versions=("")
|
||||
#airtime_versions=("airtime_191_tar" "airtime_192_tar" "airtime_192_tar" "airtime_194_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_64")
|
||||
ubuntu_versions=("ubuntu_lucid_32" "ubuntu_lucid_64" "ubuntu_natty_32" "ubuntu_natty_64" "ubuntu_oneiric_32" "ubuntu_oneiric_64" "ubuntu_precise_32" "ubuntu_precise_64" "ubuntu_quantal_32" "ubuntu_quantal_64" "debian_squeeze_32" "debian_squeeze_64" "debian_wheezy_32" "debian_wheezy_64")
|
||||
#ubuntu_versions=("debian_wheezy_32" "debian_wheezy_64")
|
||||
|
||||
num1=${#ubuntu_versions[@]}
|
||||
num2=${#airtime_versions[@]}
|
||||
|
@ -18,7 +19,19 @@ do
|
|||
#echo fab -f fab_setup.py os_update shutdown
|
||||
for j in $(seq 0 $(($num2 -1)));
|
||||
do
|
||||
echo fab -f fab_setup.py ${ubuntu_versions[$i]} ${airtime_versions[$j]} $target shutdown
|
||||
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"
|
||||
#since 2.2.0 airtime start to support wheezy and quantal, before that, we don't need to test on those combinations
|
||||
platform=`echo ${ubuntu_versions[$i]} | awk '/(quantal)|(wheezy)/'`
|
||||
airtime=`echo ${airtime_versions[$j]} | awk '/2(0|1)[0-3]/'`
|
||||
if [ "$platform" = "" ] || [ "$airtime" = "" ];then
|
||||
echo fab -f fab_release_test.py ${ubuntu_versions[$i]} ${airtime_versions[$j]} $target shutdown
|
||||
fab -f fab_release_test.py ${ubuntu_versions[$i]} ${airtime_versions[$j]} $target shutdown 2>&1 | tee "./$upgrade_log_folder/${ubuntu_versions[$i]}_${airtime_versions[$j]}_$target.log"
|
||||
#touch "./$upgrade_log_folder/${ubuntu_versions[$i]}_${airtime_versions[$j]}_$target.log"
|
||||
tail -20 "./$upgrade_log_folder/${ubuntu_versions[$i]}_${airtime_versions[$j]}_$target.log" | grep -E "Your installation of Airtime looks OK"
|
||||
returncode=$?
|
||||
if [ "$returncode" -ne "0" ]; then
|
||||
mv "./$upgrade_log_folder/${ubuntu_versions[$i]}_${airtime_versions[$j]}_$target.log" "./$upgrade_log_folder/fail_${ubuntu_versions[$i]}_${airtime_versions[$j]}_$target.log"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue