blob: 684f5ed7c83fd81c46fb5cf93d78a3c64441c729 (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#/bin/sh
# script to generate a rough baseline for smoketests
# define the parameters of the run
#TESTS=$(find ../tests/ -type f)
TESTS=../tests/pcl/pcl5cfts/fts.*
#EXE=./main/obj/pcl6
EXE=./language_switch/obj/pspcl6
OPTS="-dNOPAUSE -sDEVICE=ppmraw -r100"
BASELINE=tools/smoke_baseline.txt
# get the current revisions
rev=`svn info | grep Revision | cut -f 2 -d ' '`
gsrev=`svn info gs | grep Revision | cut -f 2 -d ' '`
echo "updating smoke test baseline for r$rev+$gsrev..."
if test -z "$TESTS"; then
echo "no test files found"
exit 1
fi
# remove the old baseline
if test -w $BASELINE; then
rm $BASELINE
fi
# loop over the test files
for file in $TESTS; do
fsum=`md5sum $file | cut -f 1 -d ' '`
result=`$EXE $OPTS -sOutputFile="|md5sum" $file`
rsum=`echo $result | cut -f 1 -d ' '`
if test -z "$rsum"; then
echo "no output for $file"
else
echo "$fsum $rsum $EXE r$rev+$gsrev $file" >> $BASELINE
fi
done
|