File: run-tests

package info (click to toggle)
kelbt 0.12-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,456 kB
  • ctags: 1,986
  • sloc: cpp: 8,015; ansic: 3,331; makefile: 137; sh: 92
file content (25 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#

[ `dirname $0` != '.' ] && cd `dirname $0`

out1=`mktemp -t cppnorm-test-XXXXXX`
out2=`mktemp -t cppnorm-test-XXXXXX`

for fn in input??.cpp; 
	do echo $fn; 
	../cxxprep -n -t `basename $fn` < $fn > $out1
	../undo < $out1 > $out2
	diff -u $out1 ${fn/input/output}
	diff -u $out2 ${fn}
done

rm $out1
rm $out2

shopt -s nullglob
for d in data-*; do
	cd $d
	./run-tests
	cd ..
done