#!/bin/bash cd $(sparkd_path.sh build gcc debug) if [ "$1" = "-b" ] then echo "Waiting..." sleep 1 pkill -f "sparkd test $2" echo "Starting tests..." ./sparkd test --force-colour -a $2 else echo ./sparkd | entr /home/bts/spark/tools/watch_tests.sh -b $1 # find -name sparkd -o -name libspark.so | entr /home/bts/spark/tools/watch_tests.sh -b $1 fi