From 0df9044e57f0f87d669913c642fbe6894323777c Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 8 Sep 2022 22:32:26 -0700 Subject: [PATCH] Meta/round: run various build targets in turn --- round | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 round diff --git a/round b/round new file mode 100755 index 0000000000..0839b69adb --- /dev/null +++ b/round @@ -0,0 +1,52 @@ +#!/bin/sh + +# Give names of targets to use on the command line +default="sparse hdr-check coccicheck test leaks address 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 ;; + esac +fi + +for t +do + case "$skip" in + *" $t "*) + echo "Skipping $t" >&2 + continue ;; + esac + + case "$t" in + address) + Meta/Make -j16 distclean >/dev/null 2>&1 && + SANITIZE=address \ + 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 + ;; + coccicheck) + SPATCH_FLAGS=--recursive-includes Meta/Make -j16 "$t" + ;; + *) + SPATCH_FLAGS=--recursive-includes Meta/Make -j16 "$t" + ;; + esac || return 1 +done && +Meta/Make -j16 distclean -- 2.47.3