From: Junio C Hamano Date: Wed, 26 Oct 2022 17:34:21 +0000 (-0700) Subject: Meta/round: exclude coccicheck from the default set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f157378539d3f203f466fa79821e8e8880a4bf43;p=thirdparty%2Fgit.git Meta/round: exclude coccicheck from the default set --- diff --git a/round b/round index d96967bd9e..477b652709 100755 --- a/round +++ b/round @@ -1,26 +1,21 @@ #!/bin/sh # Give names of targets to use on the command line -default="sparse hdr-check leaks address undefined coccicheck check-docs doc" +# coccicheck is not enabled by default +default="sparse hdr-check leaks address,undefined test check-docs doc" skip=" " more=" " -if test $# -eq 0 -then - set -- $default -else - for t - do - case "$t" in - -*) skip="$skip${t#-} " ;; - ?*) more="$more$t " ;; - esac - done - case "$more" in - " ") set -- $default ;; - *) set -- $more ;; +for t +do + case "$t" in + -) default= ;; + -?*) skip="$skip${t#-} " ;; + ?*) more="$more$t " ;; esac -fi +done + +set -- $default $more for t do @@ -31,13 +26,11 @@ do esac case "$t" in - address | undefined) - Meta/Make -j16 distclean >/dev/null 2>&1 && + address | undefined | address,undefined) SANITIZE=$t \ Meta/Make -j16 test ;; leaks) - Meta/Make -j16 distclean >/dev/null 2>&1 && SANITIZE=leak \ GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 test ;; @@ -47,6 +40,7 @@ do *) Meta/Make -j16 "$t" ;; - esac || return 1 + esac && + Meta/Make -j16 distclean >/dev/null 2>&1 || return 1 done && Meta/Make -j16 distclean