Commit 52900043 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Fix compilation path problem

parent 533e3aef
......@@ -10,9 +10,9 @@
# The fact that you are presently reading this means that you have had knowledge of the CeCILL v2.1 license and that you accept its terms.
cd `dirname $0`
project_dir="$PWD"
project=`basename $PWD`
cd -
log="/tmp/${project}_test.log"
log="/tmp/${project}_test.log"
......@@ -24,8 +24,8 @@ echo "log in $log"
echo "$project" > $log #We erase previous logs
test="t_array"
cmake -GNinja $project_dir/$test >> $log 2>&1 || { echo "ERROR: Fail compiling $test"; exit 1; } # 2>&1 : stderr is redirected like stdout
( $test >> $log 2>&1 ) || { echo "ERROR: Fail executing bin/$test"; exit 2; } # 2>&1 : stderr is redirected like stdout
../compile.sh $test >> $log 2>&1 || { echo "ERROR: Fail compiling $test"; exit 1; } # 2>&1 : stderr is redirected like stdout
( cd .. && bin/$test >> $log 2>&1 ) || { echo "ERROR: Fail executing bin/$test"; exit 2; } # 2>&1 : stderr is redirected like stdout
git diff --exit-code $test/array.tsv >> $log 2>&1 || { echo "ERROR: The result of t_array/array.tsv is not the one expected"; exit 3; }
git diff --exit-code $test/array.blc >> $log 2>&1 || { echo "ERROR: The result of t_array/array.blc is not the one expected"; exit 3; }
echo
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment