summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rwxr-xr-xtest/tiff2pdf.sh2
-rwxr-xr-xtest/tiff2ps-EPS1.sh2
-rwxr-xr-xtest/tiff2ps-PS1.sh2
-rwxr-xr-xtest/tiff2ps-PS2.sh2
-rwxr-xr-xtest/tiff2ps-PS3.sh2
-rwxr-xr-xtest/tiffcp-g3-1d-fill.sh2
-rwxr-xr-xtest/tiffcp-g3-1d.sh2
-rwxr-xr-xtest/tiffcp-g3-2d-fill.sh2
-rwxr-xr-xtest/tiffcp-g3-2d.sh2
-rwxr-xr-xtest/tiffcp-g3.sh2
-rwxr-xr-xtest/tiffcp-g4.sh2
-rwxr-xr-xtest/tiffcp-split-join.sh2
-rwxr-xr-xtest/tiffcp-split.sh2
-rwxr-xr-xtest/tiffcp-thumbnail.sh2
-rwxr-xr-xtest/tiffcrop.sh2
-rwxr-xr-xtest/tiffdump.sh2
-rwxr-xr-xtest/tiffinfo.sh2
18 files changed, 19 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 1aac4aaf..8e83d7a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2009-01-23 Frank Warmerdam <warmerdam@pobox.com>
+ * test/*.sh - default ${srcdir} to local directory.
+
* test/common.sh - start verbose mode after common settings.
* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
diff --git a/test/tiff2pdf.sh b/test/tiff2pdf.sh
index ee76fd7d..001a6117 100755
--- a/test/tiff2pdf.sh
+++ b/test/tiff2pdf.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiff2pdf
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.pdf
operation=tiff2pdf
diff --git a/test/tiff2ps-EPS1.sh b/test/tiff2ps-EPS1.sh
index c864ff24..9e74fb27 100755
--- a/test/tiff2ps-EPS1.sh
+++ b/test/tiff2ps-EPS1.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffps with PostScript Level 1 encapsulated output
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.ps
operation=tiff2ps
diff --git a/test/tiff2ps-PS1.sh b/test/tiff2ps-PS1.sh
index 209cf730..44d0426c 100755
--- a/test/tiff2ps-PS1.sh
+++ b/test/tiff2ps-PS1.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffps with PostScript Level 1 output
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.ps
operation=tiff2ps
${TIFF2PS} -a -1 ${IMG_MINISWHITE_1C_1B} > $outfile
diff --git a/test/tiff2ps-PS2.sh b/test/tiff2ps-PS2.sh
index cd51a51f..2420de37 100755
--- a/test/tiff2ps-PS2.sh
+++ b/test/tiff2ps-PS2.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffps with PostScript Level 2 output
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.ps
operation=tiff2ps
${TIFF2PS} -a -2 ${IMG_MINISWHITE_1C_1B} > $outfile
diff --git a/test/tiff2ps-PS3.sh b/test/tiff2ps-PS3.sh
index 22cc4938..50c54cdd 100755
--- a/test/tiff2ps-PS3.sh
+++ b/test/tiff2ps-PS3.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffps with PostScript Level 3 output
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.ps
operation=tiff2ps
${TIFF2PS} -a -3 ${IMG_MINISWHITE_1C_1B} > $outfile
diff --git a/test/tiffcp-g3-1d-fill.sh b/test/tiffcp-g3-1d-fill.sh
index 84197a29..9b399e15 100755
--- a/test/tiffcp-g3-1d-fill.sh
+++ b/test/tiffcp-g3-1d-fill.sh
@@ -3,7 +3,7 @@
# Basic sanity check for tiffcp with G3 compression, 1 dimensional
# encoding, and zero-filled boundaries.
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.tif
operation=tiffcp
${TIFFCP} -c g3:1d:fill ${IMG_MINISWHITE_1C_1B} $outfile
diff --git a/test/tiffcp-g3-1d.sh b/test/tiffcp-g3-1d.sh
index 7739f42f..9b1aac41 100755
--- a/test/tiffcp-g3-1d.sh
+++ b/test/tiffcp-g3-1d.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffcp with G3 compression and 1 dimensional encoding.
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.tif
operation=tiffcp
${TIFFCP} -c g3:1d ${IMG_MINISWHITE_1C_1B} $outfile
diff --git a/test/tiffcp-g3-2d-fill.sh b/test/tiffcp-g3-2d-fill.sh
index 23353268..c0cd7bfa 100755
--- a/test/tiffcp-g3-2d-fill.sh
+++ b/test/tiffcp-g3-2d-fill.sh
@@ -3,7 +3,7 @@
# Basic sanity check for tiffcp with G3 compression, 2 dimensional
# encoding, and zero-filled boundaries.
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.tif
operation=tiffcp
${TIFFCP} -c g3:2d:fill ${IMG_MINISWHITE_1C_1B} $outfile
diff --git a/test/tiffcp-g3-2d.sh b/test/tiffcp-g3-2d.sh
index 3e2ba207..d57c394c 100755
--- a/test/tiffcp-g3-2d.sh
+++ b/test/tiffcp-g3-2d.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffcp with G3 compression and 2 dimensional encoding.
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.tif
operation=tiffcp
${TIFFCP} -c g3:2d ${IMG_MINISWHITE_1C_1B} $outfile
diff --git a/test/tiffcp-g3.sh b/test/tiffcp-g3.sh
index 4e51cef5..4f0e5ccf 100755
--- a/test/tiffcp-g3.sh
+++ b/test/tiffcp-g3.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffcp with G3 compression
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.tif
operation=tiffcp
${TIFFCP} -c g3 ${IMG_MINISWHITE_1C_1B} $outfile
diff --git a/test/tiffcp-g4.sh b/test/tiffcp-g4.sh
index 9688bda1..b8ac49a3 100755
--- a/test/tiffcp-g4.sh
+++ b/test/tiffcp-g4.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffcp with G4 compression
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.tif
operation=tiffcp
${TIFFCP} -c g4 ${IMG_MINISWHITE_1C_1B} $outfile
diff --git a/test/tiffcp-split-join.sh b/test/tiffcp-split-join.sh
index 7e2d801b..9aa2fee9 100755
--- a/test/tiffcp-split-join.sh
+++ b/test/tiffcp-split-join.sh
@@ -6,7 +6,7 @@
# then we use tiffsplit to split them out again, and then we use
# tiffcp to recombine again.
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
conjoined=deleteme-conjoined-$$.tif
reconjoined=deleteme-reconjoined-$$.tif
splitfile=deleteme-split-$$
diff --git a/test/tiffcp-split.sh b/test/tiffcp-split.sh
index 38742f47..00b0d216 100755
--- a/test/tiffcp-split.sh
+++ b/test/tiffcp-split.sh
@@ -5,7 +5,7 @@
# First we use tiffcp to join our test files into a multi-frame TIFF
# and then we use tiffsplit to split them out again.
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
conjoined=deleteme-conjoined-$$.tif
splitfile=deleteme-split-$$
diff --git a/test/tiffcp-thumbnail.sh b/test/tiffcp-thumbnail.sh
index a344b35e..ad948a49 100755
--- a/test/tiffcp-thumbnail.sh
+++ b/test/tiffcp-thumbnail.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for thumbnail
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile1=deleteme-in-$$.tif
outfile2=deleteme-out-$$.tif
diff --git a/test/tiffcrop.sh b/test/tiffcrop.sh
index 3ba57312..0230a66b 100755
--- a/test/tiffcrop.sh
+++ b/test/tiffcrop.sh
@@ -4,7 +4,7 @@
#
# Created by Richard Nolde
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
TCSTATUS=0
TMPPREFIX=deleteme-
diff --git a/test/tiffdump.sh b/test/tiffdump.sh
index 86caf428..5bb33d89 100755
--- a/test/tiffdump.sh
+++ b/test/tiffdump.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffdump
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.txt
operation=tiffdump
${TIFFDUMP} ${IMG_MINISWHITE_1C_1B} > $outfile
diff --git a/test/tiffinfo.sh b/test/tiffinfo.sh
index 1e622653..6d3f43ad 100755
--- a/test/tiffinfo.sh
+++ b/test/tiffinfo.sh
@@ -2,7 +2,7 @@
#
# Basic sanity check for tiffinfo.
#
-. ${srcdir}/common.sh
+. ${srcdir:-.}/common.sh
outfile=deleteme-$$.txt
operation=tiffinfo
${TIFFINFO} -c -D -d -j -s ${IMG_MINISBLACK_1C_16B} > $outfile