From 90344742976df7b25ec176e6098d212731267389 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 21 Jul 2009 14:29:46 +1000 Subject: [PATCH] build.sh: add --check parameter to run make check after build. Signed-off-by: Peter Hutterer --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sh b/build.sh index 1c0b7af..ffb53b7 100755 --- a/build.sh +++ b/build.sh @@ -208,6 +208,9 @@ build() { failed ${CONFCMD} $1 $2 fi ${MAKE} $MAKEFLAGS || failed make $1 $2 + if test x"$CHECK" = x1; then + ${MAKE} $MAKEFLAGS check || failed check $1 $2 + fi if test x"$CLEAN" = x1; then ${MAKE} $MAKEFLAGS clean || failed clean $1 $2 fi @@ -708,6 +711,7 @@ usage() { echo " -r module/component : resume building with this comonent" echo " -s sudo-command : sudo command to use" echo " --clone : clone non-existing repositories (uses \$GITROOT if set)" + echo " --check : run make check in addition to others" } HAVE_ARCH="`uname -i`" @@ -761,6 +765,9 @@ do --clone) CLONE=1 ;; + --check) + CHECK=1 + ;; -r) shift RESUME=$1 -- 2.11.4.GIT