aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tool.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/run_tool.sh b/tools/run_tool.sh
index cec7630..7e09684 100755
--- a/tools/run_tool.sh
+++ b/tools/run_tool.sh
@@ -11,14 +11,14 @@ BIN="tools/run"
11d="$(date +'%Y-%m-%d-%H-%M-%S')" 11d="$(date +'%Y-%m-%d-%H-%M-%S')"
12 12
13for t in tools/*; do 13for t in tools/*; do
14 if [ ! -d "$t" ] || [ -z "$(echo "$t" | grep "$TOOL")" ]; then 14 if [ ! -d "$t" ] || ! (echo "$t" | grep -q "$TOOL"); then
15 continue 15 continue
16 fi 16 fi
17 toolname="$(basename "$t" .c)" 17 toolname="$(basename "$t" .c)"
18 $CC -o $BIN $t/*.c $CUBEOBJ || exit 1; 18 $CC -o $BIN "$t"/*.c "$CUBEOBJ" || exit 1;
19 $BIN | tee "tools/results/$toolname-$d.txt" "tools/results/last.out" 19 $BIN | tee "tools/results/$toolname-$d.txt" "tools/results/last.out"
20 break 20 break
21done 21done
22 22
23# $BIN is kept so it can be run manually for profiling 23# $BIN is kept so it can be run manually for profiling
24rm -rf $CUBEOBJ 24rm -rf "$CUBEOBJ"

Generated with cgit - Back to sebastiano.tronto.net