Merges all changes from the insideout branch back into trunk. This includes the IO abstraction code, split-up of image.cpp, and inside-out design change (#402, #403, and #404).
This commit is contained in:
@@ -1 +0,0 @@
|
||||
Caught Exiv2 exception 'temp: No Iptc data found in the file'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#! /bin/sh
|
||||
#! /bin/bash
|
||||
# Test driver for image file i/o
|
||||
|
||||
eraseTest()
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
#! /bin/bash
|
||||
# Test driver for image file i/o
|
||||
|
||||
ioTest()
|
||||
{
|
||||
src=$datapath/$1
|
||||
out1=${1}.1
|
||||
out2=${1}.2
|
||||
|
||||
#run tests
|
||||
$binpath/iotest $src $out1 $out2
|
||||
if [ $? -ne 0 ]; then
|
||||
let ++errors
|
||||
return
|
||||
fi
|
||||
|
||||
#check results
|
||||
diffCheck $out1 $src
|
||||
diffCheck $out2 $src
|
||||
echo -n "."
|
||||
}
|
||||
|
||||
# Make sure to pass the test file first and the known good file second
|
||||
diffCheck()
|
||||
{
|
||||
test=$1
|
||||
good=$2
|
||||
|
||||
#run diff and check results
|
||||
diff -q --binary $test $good
|
||||
if [ $? -ne 0 ]; then
|
||||
let ++errors
|
||||
else
|
||||
rm $test
|
||||
fi
|
||||
}
|
||||
|
||||
# **********************************************************************
|
||||
# main
|
||||
|
||||
LD_LIBRARY_PATH=../../src:$LD_LIBRARY_PATH
|
||||
binpath="../../src"
|
||||
datapath="../data"
|
||||
|
||||
test_files="table.jpg smiley2.jpg ext.dat"
|
||||
|
||||
let errors=0
|
||||
cd ./tmp
|
||||
echo
|
||||
|
||||
echo -n "Io tests"
|
||||
for i in $test_files; do ioTest $i; done
|
||||
|
||||
echo -e "\n---------------------------------------------------------"
|
||||
if [ $errors -eq 0 ]; then
|
||||
echo 'All test cases passed'
|
||||
else
|
||||
echo $errors 'test case(s) failed!'
|
||||
fi
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#! /bin/sh
|
||||
#! /bin/bash
|
||||
# Test driver for Iptc metadata
|
||||
|
||||
printTest()
|
||||
|
||||
Reference in New Issue
Block a user