netcdf-c/nczarr_test/run_perf_chunks1.sh
Dennis Heimbigner d2316f866c Additional Fixes to NCZarr
Primary Fixes:
* Add a whole variable optimization -- used in the rare case that nc_get/put_vara covers the whole of a variable and the variable has a single chunk.
* Fix chunking error when stride causes whole chunks to be skipped.
* Fix some memory leaks
* Add test cases
* Add one performance test to nczarr_test/. This uses the timer utils from unit_test: timer_utils.[ch].
* Move ncdumpchunks utility from ncdump to nczarr_test

Misc. Other Changes:
* Make check for aws libraries conditional on --enable-nczarr-s3
* Remove all but one bm tests from nczarr_test until they are working.
* Remove another dependency on HDF5 from supposedly non-HDF5 specific code; specifically hdf5_log_hdf5.
* Make the BAIL2 macro be hdf5 specific and replace elsewhere with an HDF5 independent equivalent.
* Move hdf5cache.c to libsrc4/nc4cache.c because it is used by nczarr.
* Modify unit_tests so that some of them are run even if using Windows.
* Misc. small bug fixes and refactors and memory leaks.
* Rename some conflicting tests for cmake.
* Attempted to make nc_perf work with cmake and failed.
2020-12-16 20:48:02 -07:00

39 lines
956 B
Bash
Executable File

#!/bin/sh
# This shell just tests the tst_chunks3 program by running it a few
# times to generate a simple test file. Then it uses ncdump -s to
# check that the output is what it should be.
# Copied from nc_perf/.
# Russ Rew, Dennis Heimbigner
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
. "$srcdir/test_nczarr.sh"
test1() {
FMT=$1
DIMS=$2
CHUNKS=$3
${execdir}/bm_chunks3 --format=$FMT --f=bm_chunks3 --dims="$DIMS" --chunks="$CHUNKS"
}
testcases() {
echo ""
echo "*** Running benchmarking program bm_chunks3 for tiny test file"
test1 $1 "6,12,4" "2,3,1"
echo '*** SUCCESS!!!'
echo ""
echo "*** Testing the benchmarking program bm_chunks3 for larger variables ..."
#cachesize=10000000; cachehash=10000; cachepre=0.0
test1 $1 "32,90,91" "8,10,13"
echo '*** SUCCESS!!!'
}
#testcases nzf
#if test "x$FEATURE_HDF5" = xyes ; then testcases nz4; fi
if test "x$FEATURE_S3TESTS" = xyes ; then testcases s3; fi
exit 0