]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: build: run make on each ./configure option
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 29 Aug 2018 16:21:16 +0000 (18:21 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 30 Aug 2018 10:11:45 +0000 (12:11 +0200)
Not only ./configure, but make sure compilation does not break for each
option.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/build/run-tests.sh

index db895c1dc2498f5af0fe5e3dec2a1c0da7f31632..626f6fd1577efeefab5e650c2fd17410cc1c9f0a 100755 (executable)
@@ -35,7 +35,8 @@ echo "Build works. Now, testing compile options"
 
 for var in "${argument[@]}" ; do
        echo "[EXECUTING] Testing compile option $var"
-       $cmd $var >/dev/null 2>>$log_file
+       ./configure $var >/dev/null 2>>$log_file
+       make -j 8 >/dev/null 2>>$log_file
        rt=$?
        echo -en "\033[1A\033[K" # clean the [EXECUTING] foobar line