From d44a7e38d1ebb10866cc6c6219725ef938cb82d9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 30 Jan 2023 11:21:45 +0200 Subject: [PATCH] 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 --- tests/fuzzing/build-test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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