mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
test/fuzz: create image for libfuzz if needed
This commit is contained in:
parent
6e058d3f51
commit
245302af3c
@ -1,7 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
DIR=`dirname $0`
|
||||
BTSTACK_ROOT="/Projects/btstack/"
|
||||
# call to build image
|
||||
# docker image build -t fuzz .
|
||||
|
||||
# build image if it doesn't exist
|
||||
if [[ "$(docker images -q fuzz 2> /dev/null)" == "" ]]; then
|
||||
echo "Image for libfuzz does not exist, creating it now..."
|
||||
docker image build --no-cache -t fuzz .
|
||||
fi
|
||||
|
||||
# enter fuzz container and bring repo along
|
||||
docker run --rm -ti -v $BTSTACK_ROOT:/btstack -w /btstack/test/fuzz fuzz
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user