11f805efeSMatthias Ringwald#!/bin/sh 2*245302afSMatthias Ringwaldset -e 3*245302afSMatthias Ringwald 41f805efeSMatthias RingwaldDIR=`dirname $0` 593fdb564SMilanka RingwaldBTSTACK_ROOT="/Projects/btstack/" 6*245302afSMatthias Ringwald 7*245302afSMatthias Ringwald# build image if it doesn't exist 8*245302afSMatthias Ringwaldif [[ "$(docker images -q fuzz 2> /dev/null)" == "" ]]; then 9*245302afSMatthias Ringwald echo "Image for libfuzz does not exist, creating it now..." 10*245302afSMatthias Ringwald docker image build --no-cache -t fuzz . 11*245302afSMatthias Ringwaldfi 12*245302afSMatthias Ringwald 13*245302afSMatthias Ringwald# enter fuzz container and bring repo along 141f805efeSMatthias Ringwalddocker run --rm -ti -v $BTSTACK_ROOT:/btstack -w /btstack/test/fuzz fuzz 151f805efeSMatthias Ringwald 16