You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
4.0 KiB
106 lines
4.0 KiB
2 years ago
|
# Copyright(C) 1999-2020 National Technology & Engineering Solutions
|
||
|
# of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
|
||
|
# NTESS, the U.S. Government retains certain rights in this software.
|
||
|
#
|
||
|
# See packages/seacas/LICENSE for details
|
||
|
|
||
|
# script to run all tests and compare them to saved dump files.
|
||
|
#
|
||
|
# To run the tests with valgrind checking, uncomment the next line and comment the
|
||
|
# following line. Can also define other prefixes if wanted.
|
||
|
|
||
|
if ($#argv == 0) then
|
||
|
set NCDUMP = `which ncdump`
|
||
|
else
|
||
|
set NCDUMP = $1
|
||
|
endif
|
||
|
|
||
|
#set PREFIX = "valgrind --tool=memcheck"
|
||
|
set PREFIX = ""
|
||
|
set SRCDIR = .
|
||
|
|
||
|
# testwt - single precision write test
|
||
|
echo "************************************************************************"
|
||
|
echo "************************************************************************"
|
||
|
echo "testwt ..."
|
||
|
echo "begin testwt" > test.output
|
||
|
${PREFIX} ${SRCDIR}/testwt >> test.output
|
||
|
echo "end testwt" >> test.output
|
||
|
${NCDUMP} -d5,5 test.exo | grep -v version | diff - test.dmp | tee testwt.res
|
||
|
|
||
|
# testrd - single precision read test
|
||
|
echo "testrd ..."
|
||
|
echo "testrd ... [Expect ex_create NOCLOBBER error from this test]"
|
||
|
${PREFIX} ${SRCDIR}/testrd | grep -v version | diff - testrd.dmp | tee testrd.res
|
||
|
|
||
|
# testcp_ss - single-to-single precision copy test
|
||
|
echo "testcp_ss ..."
|
||
|
echo "begin testcp_ss" >> test.output
|
||
|
${PREFIX} ${SRCDIR}/testcp >> test.output
|
||
|
echo "end testcp_ss" >> test.output
|
||
|
${NCDUMP} -d5,5 testcp.exo | grep -v version | diff - testcp_ss.dmp | tee testcp_ss.res
|
||
|
|
||
|
# testcpln - single-to-single, large to normal copy test
|
||
|
echo "testcpln ..."
|
||
|
echo "begin testcpln" >> test.output
|
||
|
${PREFIX} ${SRCDIR}/testcpln >> test.output
|
||
|
echo "end testcpln" >> test.output
|
||
|
${NCDUMP} -d5,5 testcp.exo | grep -v version | diff - testcpln.dmp | tee testcpln.res
|
||
|
|
||
|
# testcpnl - single-to-single, normal to large copy test
|
||
|
echo "testcpnl ..."
|
||
|
echo "begin testcpnl" >> test.output
|
||
|
${PREFIX} ${SRCDIR}/testcpnl >> test.output
|
||
|
echo "end testcpnl" >> test.output
|
||
|
${NCDUMP} -d5,5 testcpnl.exo | grep -v version | diff - testcpnl.dmp | tee testcpnl.res
|
||
|
|
||
|
# testwt1 - single precision write test with multiple side sets
|
||
|
echo "testwt1 ..."
|
||
|
echo "testwt1 ... [Expect WEDGE6 warning from this test]"
|
||
|
echo "begin testwt1" >> test.output
|
||
|
${PREFIX} ${SRCDIR}/testwt1 >> test.output
|
||
|
echo "end testwt1" >> test.output
|
||
|
${NCDUMP} -d5,5 test.exo | grep -v version | diff - test1.dmp | tee testwt1.res
|
||
|
|
||
|
# testrd1 - single precision read test with multiple side sets
|
||
|
echo "testrd1 ..."
|
||
|
echo "testrd1 ... [Expect failure locating elem var 1 for elem block 12]"
|
||
|
${PREFIX} ${SRCDIR}/testrd1 | grep -v version | diff - testrd1.dmp | tee testrd1.res
|
||
|
|
||
|
# testwtd - double precision write test
|
||
|
echo "testwtd ..."
|
||
|
echo "begin testwtd" >> test.output
|
||
|
${PREFIX} ${SRCDIR}/testwtd >> test.output
|
||
|
echo "end testwtd" >> test.output
|
||
|
${NCDUMP} -d5,5 test.exo | grep -v version | diff - testd.dmp | tee testwtd.res
|
||
|
|
||
|
# testrdd - double precision read test
|
||
|
echo "testrdd ..."
|
||
|
${PREFIX} ${SRCDIR}/testrdd | grep -v version | diff - testrdd.dmp | tee testrdd.res
|
||
|
|
||
|
# testwt2 - single precision write 2 files (simultaneously open) test
|
||
|
echo "testwt2 ..."
|
||
|
echo "begin testwt2" >> test.output
|
||
|
${PREFIX} ${SRCDIR}/testwt2 >> test.output |&grep -v "property name string"
|
||
|
echo "end testwt2" >> test.output
|
||
|
${NCDUMP} -d5,5 test.exo | grep -v version | diff - test2-1.dmp | tee testwt2-1.res
|
||
|
${NCDUMP} -d5,5 test2.exo | grep -v version | diff - test2-2.dmp | tee testwt2-2.res
|
||
|
|
||
|
echo "testwt_nsid ..."
|
||
|
echo "begin testwt_nsid" > test.output
|
||
|
${PREFIX} ${SRCDIR}/testwt_nsid >> test.output
|
||
|
echo "end testwt_nsid" >> test.output
|
||
|
${NCDUMP} -d5,5 test-nsided.exo | grep -v version | diff - test-nsided.dmp | tee testwt_nsid.res
|
||
|
|
||
|
# testrd_nsid - single precision read test
|
||
|
echo "testrd_nsid ..."
|
||
|
${PREFIX} ${SRCDIR}/testrd_nsid | grep -v version | diff - testrd_nsid.dmp | tee testrd_nsid.res
|
||
|
|
||
|
# test_nem - nemesis routines
|
||
|
echo "test_nem ..."
|
||
|
${PREFIX} ${SRCDIR}/test_nem | diff - test_nem.dmp | tee test_nem.res
|
||
|
|
||
|
echo "************************************************************************"
|
||
|
echo "************************************************************************"
|
||
|
|