-
[clean-tests.git] / old / benchmark / test.sh
1 #!/bin/bash
2 set -e
3
4 if [ $# -lt 2 ]
5 then
6 echo "Usage $0 project.prj branch1 [branch2 [..]]"
7 exit 0
8 fi
9
10 log="/dev/null"
11
12 prj=$1
13 bin="$(grep -Po "(?<=Exec: ).*" test.prj | sed 's/{Project}/'"$(dirname "$1")"/g)"
14
15 shift
16
17 for branch in "$@"
18 do
19 echo "$branch:"
20 rm -fr iTasks-SDK
21 git clone -q --depth 1 --branch="$branch" gitlab.science.ru.nl:clean-and-itasks/iTasks-SDK
22
23 cpm project "$prj" build >"$log" 2>&1
24 "$bin" || true
25 rm -rf "$bin" "$bin"-{www,data} "Clean System Files"
26 done