2010-06-03 21:24:43 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# This shell just tests the tst_chunks3 program by running it a few
|
2010-06-03 21:24:43 +08:00
|
|
|
# times to generate a simple test file. Then it uses ncdump -s to
|
|
|
|
# check that the output is what it should be.
|
|
|
|
|
2018-08-23 21:02:44 +08:00
|
|
|
# Russ Rew
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2018-08-23 21:02:44 +08:00
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2018-08-23 21:02:44 +08:00
|
|
|
echo ""
|
2011-03-15 18:19:08 +08:00
|
|
|
echo "*** Running benchmarking program tst_chunks3 for tiny test file"
|
2010-06-03 21:24:43 +08:00
|
|
|
compress_level=1
|
|
|
|
dim1=6
|
|
|
|
chunk1=2
|
|
|
|
dim2=12
|
|
|
|
chunk2=3
|
|
|
|
dim3=4
|
|
|
|
chunk3=1
|
2017-03-09 08:01:10 +08:00
|
|
|
${execdir}/tst_chunks3 $compress_level $dim1 $chunk1 $dim2 $chunk2 $dim3 $chunk3
|
2010-06-03 21:24:43 +08:00
|
|
|
echo '*** SUCCESS!!!'
|
|
|
|
|
|
|
|
echo ""
|
2011-03-15 18:19:08 +08:00
|
|
|
echo "*** Testing the benchmarking program tst_chunks3 for larger variables ..."
|
2010-06-03 21:24:43 +08:00
|
|
|
compress_level=1
|
|
|
|
dim1=32
|
|
|
|
chunk1=8
|
|
|
|
dim2=90
|
|
|
|
chunk2=10
|
|
|
|
dim3=91
|
|
|
|
chunk3=13
|
|
|
|
cachesize=10000000
|
|
|
|
cachehash=10000
|
|
|
|
cachepre=0.0
|
2017-03-09 08:01:10 +08:00
|
|
|
${execdir}/tst_chunks3 $compress_level $dim1 $chunk1 $dim2 $chunk2 $dim3 $chunk3 $cachesize $cachehash $cachepre
|
2010-06-03 21:24:43 +08:00
|
|
|
echo '*** SUCCESS!!!'
|
|
|
|
|
2016-10-22 03:42:14 +08:00
|
|
|
exit 0
|