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 <quic_jouni@quicinc.com>
This commit is contained in:
parent
bf931c5f8d
commit
d44a7e38d1
1 changed files with 6 additions and 1 deletions
|
@ -6,11 +6,16 @@ error()
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JOBS=`nproc`
|
||||||
|
if [ -z "$ABC" ]; then
|
||||||
|
JOBS=8
|
||||||
|
fi
|
||||||
|
|
||||||
for i in *; do
|
for i in *; do
|
||||||
if [ -d $i ]; then
|
if [ -d $i ]; then
|
||||||
cd $i
|
cd $i
|
||||||
make clean
|
make clean
|
||||||
make -j8 || error
|
make QUIET=1 -j$JOBS || error
|
||||||
make clean
|
make clean
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue