summaryrefslogtreecommitdiffstats
path: root/c++/examples
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-12-08 18:28:02 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-12-08 18:28:02 (GMT)
commitdc08de60a62bfeecd3f35553f8bfc353053b0986 (patch)
tree8b957fe64dbc09c568b5b4306c8d0698ba8b3dd9 /c++/examples
parent2c96b3ac314c22dd6e0aa045e2c0d6047474e85f (diff)
downloadhdf5-dc08de60a62bfeecd3f35553f8bfc353053b0986.zip
hdf5-dc08de60a62bfeecd3f35553f8bfc353053b0986.tar.gz
hdf5-dc08de60a62bfeecd3f35553f8bfc353053b0986.tar.bz2
[svn-r3100] Purpose:
Fix Description: When not building in the same directory, we needed to tell the checker wherre to look for files. Solution: Put $(srcdir) before things which needed it. Platforms tested: Linux
Diffstat (limited to 'c++/examples')
-rw-r--r--c++/examples/Makefile.in2
-rwxr-xr-xc++/examples/testexamples.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/c++/examples/Makefile.in b/c++/examples/Makefile.in
index 2a928b6..2ba0672 100644
--- a/c++/examples/Makefile.in
+++ b/c++/examples/Makefile.in
@@ -29,7 +29,7 @@ TEST_OBJ=$(TEST_SRC:.cpp=.lo)
## `make check' will run. List them in the order they should be run.
PROGS=$(TEST_SRC:.cpp=)
-TEST_SCRIPTS=testexamples.sh
+TEST_SCRIPTS=$(srcdir)/testexamples.sh
## These are the files that `make clean' (and derivatives) will remove from
## this directory.
diff --git a/c++/examples/testexamples.sh b/c++/examples/testexamples.sh
index 54141c0..c68d956 100755
--- a/c++/examples/testexamples.sh
+++ b/c++/examples/testexamples.sh
@@ -6,14 +6,14 @@ DIFF='diff -c'
nerrors=0
verbose=yes
-actual=sample.out
-expect=expected.out
-
# The build (current) directory might be different than the source directory.
if test -z "$srcdir"; then
srcdir=.
fi
+actual=sample.out
+expect=$srcdir/expected.out
+
# Print a line-line message left justified in a field of 70 characters
# beginning with the word "Testing".
TESTING()