]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use nproc for determining how many parallel jobs to use (fuzz)
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 30 Jan 2023 09:21:45 +0000 (11:21 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Jan 2023 09:21:45 +0000 (11:21 +0200)
This was already done in tests/hwsim/build.sh, but the fuzzing
build-test.sh can do same instead of using the hardcoded value 8.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/fuzzing/build-test.sh

index 26c94cca833d764c81f8e962528ad88030610f0c..eefb5c6f333bc3a1b13953c71e3d0c1b2f0ac151 100755 (executable)
@@ -6,11 +6,16 @@ error()
     exit 1
 }
 
+JOBS=`nproc`
+if [ -z "$ABC" ]; then
+    JOBS=8
+fi
+
 for i in *; do
     if [ -d $i ]; then
        cd $i
        make clean
-       make -j8 || error
+       make QUIET=1 -j$JOBS || error
        make clean
        cd ..
     fi