diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2018-12-20 20:08:13 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2018-12-20 20:08:13 (GMT) |
commit | 75a03ea0c36f24a6a3982b75a8c52325879bb569 (patch) | |
tree | 385abb112172addc85a4e5634c3e3707bb646499 /java/test/junit.sh.in | |
parent | a06249a21b95bb17c87de34c0f53d2ea55690a60 (diff) | |
parent | 416f68c6709c9dd47620e89ac6c3a911e77e8b17 (diff) | |
download | hdf5-75a03ea0c36f24a6a3982b75a8c52325879bb569.zip hdf5-75a03ea0c36f24a6a3982b75a8c52325879bb569.tar.gz hdf5-75a03ea0c36f24a6a3982b75a8c52325879bb569.tar.bz2 |
Merge branch 'develop' into vol_tweaks
Diffstat (limited to 'java/test/junit.sh.in')
-rw-r--r-- | java/test/junit.sh.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/java/test/junit.sh.in b/java/test/junit.sh.in index 350fb7b..42e16ee 100644 --- a/java/test/junit.sh.in +++ b/java/test/junit.sh.in @@ -989,6 +989,27 @@ else test yes = "$verbose" && $DIFF JUnit-TestH5PL.txt JUnit-TestH5PL.out |sed 's/^/ /' fi +echo "$JAVAEXE $JAVAEXEFLAGS -Xmx1024M -Dorg.slf4j.simpleLogger.defaultLog=trace -Djava.library.path=$BLDLIBDIR -cp $CLASSPATH -ea org.junit.runner.JUnitCore test.TestH5VL" +TESTING JUnit-TestH5VL +($RUNSERIAL $JAVAEXE $JAVAEXEFLAGS -Xmx1024M -Dorg.slf4j.simpleLogger.defaultLog=trace -Djava.library.path=$BLDLIBDIR -cp $CLASSPATH -ea org.junit.runner.JUnitCore test.TestH5VL > JUnit-TestH5VL.ext) + +# Extract file name, line number, version and thread IDs because they may be different +sed -e 's/thread [0-9]*/thread (IDs)/' -e 's/: .*\.c /: (file name) /' \ + -e 's/line [0-9]*/line (number)/' \ + -e 's/Time: [0-9]*\.[0-9]*/Time: XXXX/' \ + -e 's/v[1-9]*\.[0-9]*\./version (number)\./' \ + -e 's/[1-9]*\.[0-9]*\.[0-9]*[^)]*/version (number)/' \ + JUnit-TestH5VL.ext > JUnit-TestH5VL.out + +if diff JUnit-TestH5VL.out JUnit-TestH5VL.txt > /dev/null; then + echo " PASSED JUnit-TestH5VL" +else + echo "**FAILED** JUnit-TestH5VL" + echo " Expected result differs from actual result" + nerrors="`expr $nerrors + 1`" + test yes = "$verbose" && $DIFF JUnit-TestH5VL.txt JUnit-TestH5VL.out |sed 's/^/ /' +fi + echo "$JAVAEXE $JAVAEXEFLAGS -Xmx1024M -Dorg.slf4j.simpleLogger.defaultLog=trace -Djava.library.path=$BLDLIBDIR -cp $CLASSPATH -ea org.junit.runner.JUnitCore test.TestH5Z" TESTING JUnit-TestH5Z ($RUNSERIAL $JAVAEXE $JAVAEXEFLAGS -Xmx1024M -Dorg.slf4j.simpleLogger.defaultLog=trace -Djava.library.path=$BLDLIBDIR -cp $CLASSPATH -ea org.junit.runner.JUnitCore test.TestH5Z > JUnit-TestH5Z.ext) |