| 1 |
# Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
# of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
# NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
# |
| 5 |
# See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
# script to run all tests and compare them to saved dump files. |
| 8 |
# |
| 9 |
# To run the tests with valgrind checking, uncomment the next line and comment the |
| 10 |
# following line. Can also define other prefixes if wanted. |
| 11 |
|
| 12 |
#set PREFIX = "valgrind --tool=memcheck" |
| 13 |
set PREFIX = "" |
| 14 |
set SRCDIR = . |
| 15 |
set NCDUMP = /Users/gdsjaar/src/SEACAS.git/bin/ncdump |
| 16 |
|
| 17 |
# testwt - single precision write test |
| 18 |
echo "************************************************************************" |
| 19 |
echo "************************************************************************" |
| 20 |
echo "testwt ..." |
| 21 |
echo "begin testwt" > test.output |
| 22 |
${PREFIX} ${SRCDIR}/testwt >> test.output |
| 23 |
echo "end testwt" >> test.output |
| 24 |
${NCDUMP} -d5,5 test.exo | grep -v version > test.dmp |
| 25 |
|
| 26 |
# testrd - single precision read test |
| 27 |
echo "testrd ..." |
| 28 |
echo "testrd ... [Expect ex_create NOCLOBBER error from this test]" |
| 29 |
${PREFIX} ${SRCDIR}/testrd | grep -v version > testrd.dmp |
| 30 |
|
| 31 |
# testcp_ss - single-to-single precision copy test |
| 32 |
echo "testcp_ss ..." |
| 33 |
echo "begin testcp_ss" >> test.output |
| 34 |
${PREFIX} ${SRCDIR}/testcp >> test.output |
| 35 |
echo "end testcp_ss" >> test.output |
| 36 |
${NCDUMP} -d5,5 testcp.exo | grep -v version > testcp_ss.dmp |
| 37 |
|
| 38 |
# testcpln - single-to-single, large to normal copy test |
| 39 |
echo "testcpln ..." |
| 40 |
echo "begin testcpln" >> test.output |
| 41 |
${PREFIX} ${SRCDIR}/testcpln >> test.output |
| 42 |
echo "end testcpln" >> test.output |
| 43 |
${NCDUMP} -d5,5 testcp.exo | grep -v version > testcpln.dmp |
| 44 |
|
| 45 |
# testcpnl - single-to-single, normal to large copy test |
| 46 |
echo "testcpnl ..." |
| 47 |
echo "begin testcpnl" >> test.output |
| 48 |
${PREFIX} ${SRCDIR}/testcpnl >> test.output |
| 49 |
echo "end testcpnl" >> test.output |
| 50 |
${NCDUMP} -d5,5 testcpnl.exo | grep -v version > testcpnl.dmp |
| 51 |
|
| 52 |
# testwt1 - single precision write test with multiple side sets |
| 53 |
echo "testwt1 ..." |
| 54 |
echo "testwt1 ... [Expect WEDGE6 warning from this test]" |
| 55 |
echo "begin testwt1" >> test.output |
| 56 |
${PREFIX} ${SRCDIR}/testwt1 >> test.output |
| 57 |
echo "end testwt1" >> test.output |
| 58 |
${NCDUMP} -d5,5 test.exo | grep -v version > test1.dmp |
| 59 |
|
| 60 |
# testrd1 - single precision read test with multiple side sets |
| 61 |
echo "testrd1 ..." |
| 62 |
echo "testrd1 ... [Expect failure locating elem var 1 for elem block 12]" |
| 63 |
${PREFIX} ${SRCDIR}/testrd1 | grep -v version > testrd1.dmp |
| 64 |
|
| 65 |
# testwtd - double precision write test |
| 66 |
echo "testwtd ..." |
| 67 |
echo "begin testwtd" >> test.output |
| 68 |
${PREFIX} ${SRCDIR}/testwtd >> test.output |
| 69 |
echo "end testwtd" >> test.output |
| 70 |
${NCDUMP} -d5,5 test.exo | grep -v version > testd.dmp |
| 71 |
|
| 72 |
# testrdd - double precision read test |
| 73 |
echo "testrdd ..." |
| 74 |
${PREFIX} ${SRCDIR}/testrdd | grep -v version > testrdd.dmp |
| 75 |
|
| 76 |
# testwt2 - single precision write 2 files (simultaneously open) test |
| 77 |
echo "testwt2 ..." |
| 78 |
echo "begin testwt2" >> test.output |
| 79 |
${PREFIX} ${SRCDIR}/testwt2 >> test.output |&grep -v "property name string" |
| 80 |
echo "end testwt2" >> test.output |
| 81 |
${NCDUMP} -d5,5 test.exo | grep -v version > test2-1.dmp |
| 82 |
${NCDUMP} -d5,5 test2.exo | grep -v version > test2-2.dmp |
| 83 |
|
| 84 |
echo "testwt_nsid ..." |
| 85 |
echo "begin testwt_nsid" > test.output |
| 86 |
${PREFIX} ${SRCDIR}/testwt_nsid >> test.output |
| 87 |
echo "end testwt_nsid" >> test.output |
| 88 |
${NCDUMP} -d5,5 test-nsided.exo | grep -v version > test-nsided.dmp |
| 89 |
|
| 90 |
# testrd_nsid - single precision read test |
| 91 |
echo "testrd_nsid ..." |
| 92 |
${PREFIX} ${SRCDIR}/testrd_nsid | grep -v version > testrd_nsid.dmp |
| 93 |
|
| 94 |
echo "************************************************************************" |
| 95 |
echo "************************************************************************" |
| 96 |
|