summaryrefslogtreecommitdiffstats
path: root/java/test/junit.sh.in
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-03-22 20:02:33 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-03-22 20:02:33 (GMT)
commita4ec4e3eb18581a29241d92de0a73052a285ae60 (patch)
treef72eb39ce0c35f536b3ffcaed800914241ab8059 /java/test/junit.sh.in
parentbb80d618be9c43fe442091df2b16dcb3fc75b8ed (diff)
downloadhdf5-a4ec4e3eb18581a29241d92de0a73052a285ae60.zip
hdf5-a4ec4e3eb18581a29241d92de0a73052a285ae60.tar.gz
hdf5-a4ec4e3eb18581a29241d92de0a73052a285ae60.tar.bz2
[svn-r29520] rename java test file because test modifies original file.
Delete copy when test is finished.
Diffstat (limited to 'java/test/junit.sh.in')
-rw-r--r--java/test/junit.sh.in21
1 files changed, 7 insertions, 14 deletions
diff --git a/java/test/junit.sh.in b/java/test/junit.sh.in
index 8de07e3..698dc5d 100644
--- a/java/test/junit.sh.in
+++ b/java/test/junit.sh.in
@@ -61,8 +61,8 @@ $top_builddir/java/src/jni/.libs/libhdf5_java.*
$top_builddir/java/src/$JARFILE
"
LIST_DATA_FILES="
-$HDFTEST_HOME/h5ex_g_iterate.hdf
$HDFTEST_HOME/JUnit-interface.txt
+$HDFTEST_HOME/JUnit-interface.ert
"
expect="JUnit-interface.txt"
@@ -144,23 +144,16 @@ COPY_DATAFILES_TO_BLDDIR()
fi
fi
done
+ $CP -f $HDFTEST_HOME/h5ex_g_iterate.orig $BLDDIR/h5ex_g_iterate.hdf
}
CLEAN_DATAFILES_AND_BLDDIR()
{
- # skip rm if srcdir is same as destdir
- # this occurs when build/test performed in source dir and
- # make cp fail
- SDIR=`$DIRNAME $HDFTEST_HOME/h5ex_g_iterate.hdf`
- INODE_SDIR=`$LS -i -d $SDIR | $AWK -F' ' '{print $1}'`
- INODE_DDIR=`$LS -i -d $BLDDIR | $AWK -F' ' '{print $1}'`
- if [ "$INODE_SDIR" != "$INODE_DDIR" ]; then
- $RM $BLDDIR/*.hdf
- $RM $BLDDIR/*.out
- $RM $BLDDIR/*.err
- $RM $BLDDIR/*.ext
- $RM $BLDDIR/*.txt
- fi
+ $RM $BLDDIR/h5ex_g_iterate.hdf
+ $RM $BLDDIR/JUnit-interface.out
+ $RM $BLDDIR/JUnit-interface.err
+ $RM $BLDDIR/JUnit-interface.ext
+ $RM $BLDDIR/JUnit-interface.txt
}
# Print a line-line message left justified in a field of 70 characters