aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/atlocal.in
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-30 04:51:06 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-30 14:04:54 +0300
commit7c55c0c00c761144e618868325f081771f6eb74e (patch)
treec8fc56ffb517f77787c62629cbbc689490adbcce /tests/atlocal.in
parent6d882a3fdd5b35181b301a2b1db32908c2b7953a (diff)
downloadsciteco-7c55c0c00c761144e618868325f081771f6eb74e.tar.gz
testsuite: added --valgrind option for running SciTECO under Valgrind (memcheck)
* Any memory error will let the test case fail with code 66. * You can also call make check TESTSUITEFLAGS="--valgrind" * There is no program test for Valgrind in configure.ac for the time being. `valgrind` must be in $PATH. * All CI testsuite runs under Ubuntu are now with Valgrind.
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 4bc0a21..3c533a6 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -6,8 +6,12 @@ host=@host@
# anyway as we don't want to test some preinstalled SciTECO.
SCITECO="@abs_top_builddir@/src/sciteco"
+if [ $at_arg_valgrind != false ]; then
+ SCITECO="valgrind --tool=memcheck --error-exitcode=66 $SCITECO"
+fi
+
# For testing command-line editing:
-SCITECO_CMDLINE="@abs_top_builddir@/src/sciteco --no-profile --fake-cmdline"
+SCITECO_CMDLINE="$SCITECO --no-profile --fake-cmdline"
# Make sure that the standard library from the source package
# is used.