Skip to content

Commit

Permalink
qemu-zcu102: add host and qemu side logging to test-qemu
Browse files Browse the repository at this point in the history
* Log output from the host pane to a log file
* Turn on bash level debug and stop on error for the host pane
* Log output from qemu pane to new log file per run
* Pass run number to qemu subprocess so it can be used in log name
* Add date to host side log file name
* Git rid of unused arg to wait_for_ssh (WAIT var controls wait time)

Signed-off-by: Bill Mills <[email protected]>
  • Loading branch information
wmamills committed Jul 22, 2024
1 parent 56c19ef commit 766a075
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions qemu-zcu102/bin/test-qemu
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,15 @@ do_host() {
sleep 2

#for i in $(seq 1 100); do echo "fake FAIL #$i" >>$LOG; done
set -xe
exec > >(tee host-log-$NOW.txt) 2>&1

for run in $(seq 1 $RUNS); do
for k in ${KERNELS[@]}; do
tmux-panel-title "run=$run kernel=$k boot"
tmux select-pane -t $TMUX_PANE
tmux split-window -h "$ME subcmd qemu $k"
if wait_for_ssh 60; then
tmux split-window -h "$ME subcmd qemu $run $k"
if wait_for_ssh; then
status=true
for test in $(seq 1 $TESTS); do
tmux-panel-title "run=$run kernel=$k test=$test"
Expand Down Expand Up @@ -146,8 +148,11 @@ do_host() {
}

do_qemu() {
RUN=$1; shift
exec > >(tee qemu-log-$NOW-run-$RUN.txt) 2>&1
tmux-panel-title "qemu $@"
QEMU_TMUX=no qemu-zcu102 $1
echo "RUN=$RUN"
QEMU_TMUX=no qemu-zcu102 "$@"
}

main() {
Expand Down

0 comments on commit 766a075

Please sign in to comment.