Skip to content

Commit 36fc055

Browse files
committed
testing/fuzzing: Build multiple fuzzing tests concurrently
1 parent da53d0c commit 36fc055

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/fuzzing/build-fuzz-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ scriptdir=$(cd "$(dirname "$0")" && pwd)
66
libs=$(sed -n 's/^NSC_LNETSNMPLIBS="\(.*\)"$/\1/p' ./net-snmp-config;
77
sed -n "s/^PERLLDOPTS_FOR_LIBS='\(.*\)'/\1/p" ./config.log)
88
for fuzzname in testing/fuzzing/*_fuzzer.c; do
9+
{
910
fuzzname=${fuzzname%_fuzzer.c}
1011
fuzzname=${fuzzname#testing/fuzzing/}
1112
echo "Compiling testing/fuzzing/${fuzzname}_fuzzer.c"
@@ -23,4 +24,6 @@ for fuzzname in testing/fuzzing/*_fuzzer.c; do
2324
agent/helpers/.libs/libnetsnmphelpers.a \
2425
snmplib/.libs/libnetsnmp.a ${libs} \
2526
-o "$OUT/${fuzzname}_fuzzer"
27+
} &
2628
done
29+
wait

0 commit comments

Comments
 (0)