Skip to content

Commit

Permalink
push5
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisHeimbigner committed Apr 21, 2024
1 parent b8f4901 commit 777ffb1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
6 changes: 3 additions & 3 deletions nczarr_test/run_chunkcases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ rm -f tmp_rem_${zext}.txt tmp_rem_${zext}.cdl
$TC -d 8,8 -c 3,3 -s 0,0 -p 8,8 -Ocw $F
${NCDUMP} $F > tmp_rem_${zext}.cdl
diff -b ${srcdir}/ref_rem.cdl tmp_rem_${zext}.cdl
${execdir}/ncdumpchunks -v v $F > tmp_rem_${zext}.txt
${NCDUMPCHUNKS} -v v $F > tmp_rem_${zext}.txt
diff -b ${srcdir}/ref_rem.dmp tmp_rem_${zext}.txt

echo "Test rank > 2"
Expand All @@ -105,7 +105,7 @@ rm -f tmp_ndims_${zext}.txt tmp_ndims_${zext}.cdl
$TC -d 8,8,8,8 -c 3,3,4,4 -s 0,0,0,0 -p 8,8,8,8 -Ocw $F
${NCDUMP} $F > tmp_ndims_${zext}.cdl
diff -b ${srcdir}/ref_ndims.cdl tmp_ndims_${zext}.cdl
${execdir}/ncdumpchunks -v v $F > tmp_ndims_${zext}.dmp
${NCDUMPCHUNKS} -v v $F > tmp_ndims_${zext}.dmp
diff -b ${srcdir}/ref_ndims.dmp tmp_ndims_${zext}.dmp

echo "Test miscellaneous 1"
Expand All @@ -114,7 +114,7 @@ rm -f tmp_misc1_${zext}.txt tmp_misc1_${zext}.cdl
$TC -d 6,12,4 -c 2,3,1 -s 0,0,0 -e 6,1,4 -Ocw $F
${NCDUMP} $F > tmp_misc1_${zext}.cdl
diff -b ${srcdir}/ref_misc1.cdl tmp_misc1_${zext}.cdl
${execdir}/ncdumpchunks -v v $F > tmp_misc1_${zext}.dmp
${NCDUMPCHUNKS} -v v $F > tmp_misc1_${zext}.dmp
diff -b ${srcdir}/ref_misc1.dmp tmp_misc1_${zext}.dmp
} # testcasespass()

Expand Down
2 changes: 1 addition & 1 deletion nczarr_test/run_notzarr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cp ${srcdir}/ref_notzarr.tar.gz .
gunzip ref_notzarr.tar.gz
tar -xf ref_notzarr.tar
if test "x$FEATURE_S3TESTS" = xyes ; then
${execdir}/s3util -f notzarr.file/notzarr.txt -u "https://${URL}" -k "${S3ISOPATH}/notzarr.s3/notzarr.txt" upload
${S3UTIL} -f notzarr.file/notzarr.txt -u "https://${URL}" -k "${S3ISOPATH}/notzarr.s3/notzarr.txt" upload
fi

echo "Test empty file"
Expand Down
3 changes: 1 addition & 2 deletions nczarr_test/run_unlim_io.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ THISDIR=`pwd`
cd $ISOPATH

TC="${execdir}/test_unlim_io -4"
ZM="${execdir}/zmapio -t int"

remfile() {
case "$zext" in
Expand Down Expand Up @@ -69,7 +68,7 @@ $TC -d 0,0 -c 2,2 -s 0,0 -e 2,2 -v 17 -Ocw "$file"
${NCDUMP} -n tmp_unlim_io2 tmp_unlim_io2.nc >tmp_unlim_io2.nc.txt
${NCDUMP} -n tmp_unlim_io2 "$file" >tmp_unlim_io2.${zext}.txt
diff -b tmp_unlim_io2.nc.txt tmp_unlim_io2.${zext}.txt
${execdir}/ncdumpchunks -v v "$file"
${NCDUMPCHUNKS} -v v "$file"
}

testcase3() {
Expand Down
18 changes: 9 additions & 9 deletions nczarr_test/test_nczarr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ else
fi

# Fix execdir
EXECDIR="${execdir}/../nczarr_test"
NCZARRDIR="${execdir}/../nczarr_test"

ZMD="${EXECDIR}/${DL}zmapio"
S3UTIL="${EXECDIR}/${DL}s3util"
ZS3PARSE="${EXECDIR}/${DL}zs3parse"
NCDUMPCHUNKS="${EXECDIR}/${DL}ncdumpchunks"
ZHEX="${EXECDIR}/${DL}zhex"
ZISJSON="${EXECDIR}/${DL}zisjson"
ZMD="${NCZARRDIR}/${DL}zmapio"
S3UTIL="${NCZARRDIR}/${DL}s3util"
ZS3PARSE="${NCZARRDIR}/${DL}zs3parse"
NCDUMPCHUNKS="${NCZARRDIR}/${DL}ncdumpchunks"
ZHEX="${NCZARRDIR}/${DL}zhex"
ZISJSON="${NCZARRDIR}/${DL}zisjson"

# Check settings
checksetting() {
Expand Down Expand Up @@ -176,7 +176,7 @@ resetrc() {
}

s3sdkdelete() {
if test -f ${execdir}/s3util ; then
if test -f ${S3UTIL} ; then
${S3UTIL} ${PROFILE} -u "${NCZARR_S3_TEST_URL}" -k "$1" clear
elif which aws ; then
aws s3api delete-object --endpoint-url=https://${NCZARR_S3_TEST_HOST} --bucket=${NCZARR_S3_TEST_BUCKET} --key="/${S3ISOPATH}/$1"
Expand All @@ -186,7 +186,7 @@ fi
}

s3sdkcleanup() {
if test -f ${execdir}/s3util ; then
if test -f ${S3UTIL} ; then
${S3UTIL} ${PROFILE} -u "${NCZARR_S3_TEST_URL}" -k "$1" clear
elif which aws ; then
aws s3api delete-object --endpoint-url=https://${NCZARR_S3_TEST_HOST} --bucket=${NCZARR_S3_TEST_BUCKET} --key="/${S3ISOPATH}/$1"
Expand Down

0 comments on commit 777ffb1

Please sign in to comment.