Started test driver for bugfixes regression testing
This commit is contained in:
parent
ef8bd98e79
commit
1c3bd8beb4
31
test/bugfixes-test.sh
Executable file
31
test/bugfixes-test.sh
Executable file
@ -0,0 +1,31 @@
|
||||
#! /bin/sh
|
||||
# Test driver with regression tests for bugfixes
|
||||
results="./tmp/bugfixes-test.out"
|
||||
good="./data/bugfixes-test.out"
|
||||
diffargs="--strip-trailing-cr"
|
||||
tmpfile=tmp/ttt
|
||||
touch $tmpfile
|
||||
diff -q $diffargs $tmpfile $tmpfile 2>/dev/null
|
||||
if [ $? -ne 0 ] ; then
|
||||
diffargs=""
|
||||
fi
|
||||
(
|
||||
LD_LIBRARY_PATH=../../src:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH
|
||||
binpath="../../src"
|
||||
cd ./tmp
|
||||
# bug 440
|
||||
cp -f ../data/exiv2-bug440.jpg .
|
||||
$binpath/exiv2 -pi exiv2-bug440.jpg
|
||||
# bug 441
|
||||
cp -f ../data/exiv2-bug441.jpg .
|
||||
$binpath/exiv2 -pi exiv2-bug441.jpg
|
||||
) > $results
|
||||
|
||||
diff -q $diffargs $results $good
|
||||
rc=$?
|
||||
if [ $rc -eq 0 ] ; then
|
||||
echo "All testcases passed."
|
||||
else
|
||||
diff $diffargs $results $good
|
||||
fi
|
||||
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Loading…
Reference in New Issue
Block a user