From: Jouni Malinen Date: Mon, 30 Jan 2023 09:21:45 +0000 (+0200) Subject: tests: Use nproc for determining how many parallel jobs to use (fuzz) X-Git-Tag: hostap_2_11~1331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d44a7e38d1ebb10866cc6c6219725ef938cb82d9;p=thirdparty%2Fhostap.git tests: Use nproc for determining how many parallel jobs to use (fuzz) 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 --- diff --git a/tests/fuzzing/build-test.sh b/tests/fuzzing/build-test.sh index 26c94cca8..eefb5c6f3 100755 --- a/tests/fuzzing/build-test.sh +++ b/tests/fuzzing/build-test.sh @@ -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