Meta/Dothem: allow optional sanitize tests
Junio C Hamano committed
Oct 21, 2022 at 12:02 UTC
8fe2ce96f17866c06931332df75c75b9535002d3
1 file changed
+10
-11
Dothem
+10
-11
@@ -212,20 +212,19 @@ do
212
213
Meta/Make $M $jobs -- hdr-check &&
214
215
- case "$san" in
216
- '') ;;
217
- ?*)
218
- SANITIZE=address Meta/Make $M $jobs test &&
219
- SANITIZE=undefined Meta/Make $M $jobs test &&
220
- SANITIZE=leak \
221
- GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make $M $jobs test &&
222
- Meta/Make distclean >/dev/null 2>&1
215
+ case "$dotest,$san" in
216
+ '')
217
+ ;;
218
+ test,)
219
+ Meta/Make $M $noprove ${test+"$test"} $jobs $test_long $memtrash \
220
+ -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest
221
+ ;;
222
+ *,t)
223
+ SANITIZE=address,undefined Meta/Make $M $jobs test &&
224
+ Meta/Make >/dev/null distclean
225
;;
226
esac &&
227
226
- Meta/Make $M $noprove ${test+"$test"} $jobs $test_long $memtrash \
227
- -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest &&
228
-
228
{
229
test -n "$skip_doc" ||
230
if test "$save" = "$(git rev-parse HEAD)"