scripts: add option to build fuzzer

Enable building the fuzzer with the -f option
in the build-tools.sh script.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2019-08-02 16:02:26 -07:00 committed by Janusz Jankowski
parent 2f9b43bac0
commit ee194890b5
1 changed files with 16 additions and 4 deletions

View File

@ -13,7 +13,19 @@ mkdir build_tools
cd build_tools
cmake ..
make -j$(nproc)
if [[ "$1" == "-t" ]]; then
make tests -j$(nproc)
fi
cd ../../
for args in $@
do
#build test topologies
if [[ "$args" == "-t" ]]; then
make tests -j$(nproc)
fi
#build fuzzer
if [[ "$args" == "-f" ]]; then
rm -rf fuzzer
mkdir fuzzer
cd fuzzer
cmake ../../fuzzer
make -j$(nproc)
cd ../
fi
done