]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
travis: add make checkusage
authorRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 27 Jun 2017 06:25:30 +0000 (08:25 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 27 Jun 2017 06:25:30 +0000 (08:25 +0200)
We will run all built programs with 3 different
options on Linux and OSX.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
.travis-functions.sh

index 7b20e886c24b9136f045a5e3c380d43d36d860be..f0a0d8990f474825fcccd5efafddc2a2fb7aa0ee 100755 (executable)
@@ -36,6 +36,17 @@ function xconfigure
        return $err
 }
 
+# TODO: integrate checkusage into our regular tests and remove this function
+function make_checkusage
+{
+       local tmp
+       if ! tmp=$($MAKE checkusage 2>&1) || test -n "$tmp"; then
+               echo "$tmp"
+               echo "make checkusage failed" >&2
+               return 1
+       fi
+}
+
 function check_nonroot
 {
        local opts="$MAKE_CHECK_OPTS --show-diff"
@@ -50,6 +61,8 @@ function check_nonroot
        osx_prepare_check
        $MAKE check TS_OPTS="$opts" || return
 
+       make_checkusage || return
+
        $MAKE install DESTDIR=/tmp/dest || return
 }