diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-01 11:09:52 -0600 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 17:06:21 -0600 |
commit | 0fdf1360b2731c7992ea58a53894faaab47e8d2c (patch) | |
tree | 704ffd447334e57f7fab7a9edea6fe1256893eea /src/build | |
parent | a4dd69b10ae11f0ad49726964fdb86966b5a05c8 (diff) | |
download | talos-hostboot-0fdf1360b2731c7992ea58a53894faaab47e8d2c.tar.gz talos-hostboot-0fdf1360b2731c7992ea58a53894faaab47e8d2c.zip |
autocitest debug traces
Change-Id: Ia232114df431e3f28ff1d981ad2accd407f699f5
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23836
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-x | src/build/citest/autocitest | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/build/citest/autocitest b/src/build/citest/autocitest index 557860282..e264b4c47 100755 --- a/src/build/citest/autocitest +++ b/src/build/citest/autocitest @@ -265,6 +265,9 @@ shutdown_status=`echo "obase=16; $temp" | bc` ## note, don't use $VERBOSE here or you get all sorts of extra junk in the output file. echo "Wait for unit test completion." +echo +echo "===================================" +echo declare -i timeout=0 modsstarted=0 modscompleted=0 @@ -272,10 +275,27 @@ loopcount=0 while [ $(($modsstarted)) -lt 1 -o $(($modsstarted)) -ne $(($modscompleted)) ]; do sleep 10 ((loopcount++)) # increment loopcount - autosim $NOWIN --simcmd "print ((system_cmp0.phys_mem).read 0x$mods_completed_addr 0x08)" 1> $SBXHOME/modscompleted.log 2> /dev/null - modscompleted=`cat $SBXHOME/modscompleted.log | awk '/0x/ {print strtonum($1)}'` + echo "loopcount = $loopcount" + + echo "modscompleted log command" + echo "autosim $NOWIN --simcmd \"print ((system_cmp0.phys_mem).read 0x$mods_completed_addr 0x08)\" 1> $SBXHOME/modscompleted.log 2> /dev/null" + autosim $NOWIN --simcmd "print ((system_cmp0.phys_mem).read 0x$mods_completed_addr 0x08)" 1> $SBXHOME/modscompleted.log 2> /dev/null + echo + + echo "modscompleted command" + echo "cat $SBXHOME/modscompleted.log | awk '/0x/ {print strtonum($1)}'" + modscompleted=`cat $SBXHOME/modscompleted.log | awk '/0x/ {print strtonum($1)}'` + echo + + echo "modsstarted log command" + echo "autosim $NOWIN --simcmd \"print ((system_cmp0.phys_mem).read 0x$mods_started_addr 0x08)\" 1> $SBXHOME/modsstarted.log 2> /dev/null" autosim $NOWIN --simcmd "print ((system_cmp0.phys_mem).read 0x$mods_started_addr 0x08)" 1> $SBXHOME/modsstarted.log 2> /dev/null + echo + + echo "modsstarted command" + echo "cat $SBXHOME/modsstarted.log | awk '/0x/ {print strtonum($1)}'" modsstarted=`cat $SBXHOME/modsstarted.log | awk '/0x/ {print strtonum($1)}'` + echo echo "ModulesStarted:ModulesCompleted => $modsstarted:$modscompleted" @@ -285,6 +305,9 @@ while [ $(($modsstarted)) -lt 1 -o $(($modsstarted)) -ne $(($modscompleted)) ]; timeout=$(($modsstarted - $modscompleted)) break fi + echo + echo "===================================" + echo done echo "====> waiting for shutdown..." |