diff options
Diffstat (limited to 'unittest/ota_auto.sh')
| -rwxr-xr-x | unittest/ota_auto.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/unittest/ota_auto.sh b/unittest/ota_auto.sh new file mode 100755 index 0000000..b6355ba --- /dev/null +++ b/unittest/ota_auto.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# ota_auto.sh +# +# Run a single automated test and log results + +timestamp=$(date +"%F-%T") +mkdir -p $timestamp +start_dir=$(pwd) +cd $timestamp +../ota_test.sh "$@" >> log.txt 2>&1 +cd $start_dir +kiwi_sdr=$(head -n 1 ${timestamp}/log.txt) +mode=$(head -n 2 ${timestamp}/log.txt | tail -n 1) +result=$(awk '/FrmGd/{getline; print}' ${timestamp}/log.txt) +printf "%s %-25s %s %s\n" $timestamp $kiwi_sdr $mode "$result" >> log.txt |
