You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
494 B
Bash

#! /bin/sh
# Test driver to run the addmoddel sample program
results="./tmp/addmoddel.out"
good="./data/addmoddel.out"
(
LD_LIBRARY_PATH=../../src:$LD_LIBRARY_PATH
exiv2="../../src/exiv2"
binpath="../../src"
cp -f ./data/exiv2-empty.jpg ./tmp
cd ./tmp
$binpath/addmoddel exiv2-empty.jpg
$binpath/exiv2 -pv exiv2-empty.jpg
) > $results
diff -q --strip-trailing-cr $results $good
rc=$?
if [ $rc -eq 0 ] ; then
echo "All testcases passed."
else
diff --strip-trailing-cr $results $good
fi