| 1 |
#! /usr/bin/env bash |
| 2 |
# Copyright(C) 1999-2021 National Technology & Engineering Solutions |
| 3 |
# of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 4 |
# NTESS, the U.S. Government retains certain rights in this software. |
| 5 |
# |
| 6 |
# See packages/seacas/LICENSE for details |
| 7 |
|
| 8 |
# script to run all tests and compare them to saved dump files. |
| 9 |
# |
| 10 |
# To run the tests with valgrind checking, uncomment the next line and comment the |
| 11 |
# following line. Can also define other prefixes if wanted. |
| 12 |
|
| 13 |
#set PREFIX = "valgrind --tool=memcheck" |
| 14 |
PREFIX="" |
| 15 |
SUFFIX="" |
| 16 |
BINDIR=@CMAKE_CURRENT_BINARY_DIR@ |
| 17 |
SRCDIR=@CMAKE_CURRENT_SOURCE_DIR@ |
| 18 |
NCDUMP=@NETCDF_NCDUMP@ |
| 19 |
DIFF="diff -w" |
| 20 |
|
| 21 |
ret_status=0 |
| 22 |
rm -f test.output |
| 23 |
echo "testwt-compress - verify can create compressed netcdf-4 files..." |
| 24 |
echo "begin testwt-compress" >> test.output |
| 25 |
${PREFIX} ${BINDIR}/testwt-compress${SUFFIX} >> test.output |
| 26 |
ret_status=$((ret_status+$?)) |
| 27 |
${NCDUMP} -h -s test-compress.exo | grep Deflate | ${DIFF} - ${SRCDIR}/test-compress.dmp | tee test-compress.res |
| 28 |
ret_status=$((ret_status+${PIPESTATUS[0]}+${PIPESTATUS[2]})) |
| 29 |
echo "end testwt-compress, status = $ret_status" >> test.output |
| 30 |
exit $ret_status |