scripts: pre-submit: Run release buildtype tests under valgrind
This is the most important case due to release builds disabling
assertions and potentially changing optimization levels and so-forth,
where undefined behavior gets its opportunity to shine.
Change-Id: If195a50c7156fcda164fee14ed6071ecd79c019f
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/scripts/pre-submit b/scripts/pre-submit
index 69f76e1..60034be 100755
--- a/scripts/pre-submit
+++ b/scripts/pre-submit
@@ -21,7 +21,7 @@
# and incorrect test case implementations.
meson configure --buildtype=release "$BUILD"
meson compile -C "$BUILD"
-meson test -C "$BUILD"
+meson test -C "$BUILD" --timeout-multiplier 10 --wrapper 'valgrind --error-exitcode=1'
# Ensure the test suite links when testing symbols are removed from the ABI
meson configure --buildtype=debug "$BUILD"