1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/cmd/tools/fuzz/fuzz.sh
2020-12-13 08:59:02 +01:00

19 lines
309 B
Bash

#!/bin/sh
cores=$(nproc --all)
echo Number of cores: $cores
echo Compiling...
./v -cc clang -o cmd/tools/fuzz/map_fuzz cmd/tools/fuzz/map_fuzz.v -prod -cflags "-fsanitize=memory"
echo Fuzzing:
while true
do
for ((i=1;i<=cores;++i))
do
sleep 0.001
./cmd/tools/fuzz/map_fuzz &
done
wait
done