From a700d1ba16d4f05860737664a56d13aa275ddbb5 Mon Sep 17 00:00:00 2001 From: Robert Izzard <r.izzard@surrey.ac.uk> Date: Sat, 7 Aug 2021 12:18:53 +0100 Subject: [PATCH] added valgrind test in tbse also --- tbse | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tbse b/tbse index 7db2d0b41..09b6d2017 100755 --- a/tbse +++ b/tbse @@ -2671,6 +2671,13 @@ then echo "$VALGRIND $VALGRIND_OPTS" exit fi + + if [ "$RUNMODE" == "valgrind" ]; then + if [ -z `$BIN_C --version |grep 'VALGRIND is on'` ]; then + echo -e "You are trying to run binary_c through valgrind without building with valgrind support. On some architectures this will fail, so please configure binary_c with something like\n\nmeson -Dvalgrind=true builddir\n\nand rebuild.\n" + exit + fi + fi elif [ "$RUNMODE" == "massif" ]; then # run through valgrind's massif -- GitLab