From bcf90a927e797ae2a909580cbe39be21c2350880 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 7 Nov 2023 18:11:13 +0000 Subject: 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. --- gdb/testsuite/make-check-all.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/testsuite') 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 } -- cgit v1.1