aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-11-07 18:11:13 +0000
committerAndrew Burgess <aburgess@redhat.com>2023-11-28 10:33:44 +0000
commitbcf90a927e797ae2a909580cbe39be21c2350880 (patch)
tree919e98613569d27018a1bda657decb19d8afdef2
parent3644f41dc805b38943009bed3d15ed36326406d6 (diff)
downloadbinutils-bcf90a927e797ae2a909580cbe39be21c2350880.zip
binutils-bcf90a927e797ae2a909580cbe39be21c2350880.tar.gz
binutils-bcf90a927e797ae2a909580cbe39be21c2350880.tar.bz2
gdb/testsuite: log 'make check' command in make-check-all.sh
I have been making more use of the make-check-all.sh script to run tests against all boards. But one thing is pretty annoying. When a test fails on some random board, I have to run make-check-all.sh with --verbose and --dry-run in order to see what RUNTESTFLAGS I should be using. I always run with --keep-results on, so, in this commit, I propose that, when --keep-results is on the 'make check' command will be written out to a file within the stored results directory, like: check-all/BOARD_NAME/make-check.sh then, if I want to rerun a test, I can just: sh check-all/BOARD_NAME/make-check.sh and the test will be re-run for me.
-rwxr-xr-xgdb/testsuite/make-check-all.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/make-check-all.sh b/gdb/testsuite/make-check-all.sh
index 947e6e3..e0c1fdb 100755
--- a/gdb/testsuite/make-check-all.sh
+++ b/gdb/testsuite/make-check-all.sh
@@ -187,6 +187,10 @@ do_tests ()
mkdir -p "$dir"
cp gdb.sum gdb.log "$dir"
+
+ # Record the 'make check' command to enable easy re-running.
+ echo "make check RUNTESTFLAGS=\"${rtf[*]} ${tests[*]}\"" \
+ > "$dir/make-check.sh"
fi
}