DEADSOFTWARE

Fix if(x=y). Added CC variable to makefile.
[odcread.git] / test.sh
1 #!/bin/bash
3 SEP="================================================================================"
5 runTests() {
6 echo "Output files to $outdir"
7 while read i; do
8 echo -e "$SEP\n$SEP"
9 echo "Running examples from " $i
10 (cd "$i"
11 find . -name '*.odc' | while read j; do
12 echo $SEP
13 echo "Running example $j from $i"
14 out=${j/#\.\//}
15 out=${out//\//_}
16 echo "Output being sent to $out"
17 out=$outdir/$out
18 $odcread "$j" >"$out"
19 done
20 )
21 echo
22 done < 'paths.txt'
23 }
25 # create clean output directory
26 rm -rf out
27 mkdir out
29 odcread=`readlink -f odcread`
30 outdir=`readlink -f out`
32 runTests 2>&1 | tee out.txt