Skip to content

Commit

Permalink
Merge branch 'master' into ejh_func_cleanup2
Browse files Browse the repository at this point in the history
  • Loading branch information
WardF authored Aug 13, 2018
2 parents a650780 + 75060b7 commit e710027
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dap4_test/maketests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

# The purpose of this program is to fill in the
# testdata files: dmrtestfiles, daptestfiles, and
Expand Down
11 changes: 5 additions & 6 deletions dap4_test/test_raw.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
Expand All @@ -9,9 +9,9 @@ set -e
echo "test_raw.sh:"

# Compute the set of testfiles
PUSHD ${srcdir}/daptestfiles
cd ${srcdir}/daptestfiles
F=`ls -1d *.dap`
POPD
cd -
F=`echo $F | tr '\r\n' ' '`
F=`echo $F | sed -e s/.dap//g`

Expand Down Expand Up @@ -54,12 +54,12 @@ for f in $F ; do
failure "diff ${f}.dmp"
fi
elif test "x${RESET}" = x1 ; then
echo "${f}:"
echo "${f}:"
cp ./results_test_raw/${f}.dmp ${BASELINERAW}/${f}.dmp
elif test "x${DIFF}" = x1 ; then
echo "hdrtest: ${f}"
rm -f ./tr1 ./tr2 ./tb1 ./tb2
baseclean
baseclean
if ! diff -wBb ./${BASELINERAW}/${f}.dmp ./${BASELINE}/${f}.ncdump ; then
failure diff -wBb ./${BASELINERAW}/${f}.dmp ./${BASELINE}/${f}.ncdump
fi
Expand All @@ -68,4 +68,3 @@ done
rm -rf ./results_test_raw

finish

2 changes: 1 addition & 1 deletion nc_test/make_test_file.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#! /bin/sh
./nc_test -c
./nc_test -c
2 changes: 1 addition & 1 deletion nc_test/run_diskless2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
Expand Down
2 changes: 1 addition & 1 deletion nc_test4/clear_cache.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -x
#!/bin/sh -x
# Clear the disk caches.
sync
echo 3 > /proc/sys/vm/drop_caches
Expand Down
2 changes: 1 addition & 1 deletion nc_test4/run_par_bm_radar_2D.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ for numproc in 1 4 16
done
echo '*** SUCCESS!!!'

exit 0
exit 0
2 changes: 1 addition & 1 deletion nc_test4/tst_filter.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

export SETX=1

Expand Down
2 changes: 1 addition & 1 deletion ncdump/tst_hdf5_offset.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
Expand Down
2 changes: 1 addition & 1 deletion ncdump/tst_nccopy3_subset.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
#
# Added in support of https://github.com/Unidata/netcdf-c/gh425 and
# https://github.com/Unidata/netcdf-c/gh469
Expand Down
2 changes: 1 addition & 1 deletion ncdump/tst_nccopy4.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
Expand Down
2 changes: 1 addition & 1 deletion ncdump/tst_nccopy5.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh
Expand Down
2 changes: 1 addition & 1 deletion ncdump/tst_ncgen4.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Tests for ncgen4 using list of test cdl files from the cdl4
# directory, and comparing output to expected results in the expected4
# directory. Note that these tests are run for classic files in
Expand Down
4 changes: 2 additions & 2 deletions ncdump/tst_netcdf4.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# This shell script tests ncdump for netcdf-4
# Ed Hartnett, Dennis Heimbigner, Ward Fisher

Expand All @@ -7,7 +7,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi

set -e

function ERR {
ERR() {
RES=$?
if [ $RES -ne 0 ]; then
echo "Error found: $RES"
Expand Down
2 changes: 1 addition & 1 deletion ncgen/makeparser.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
flex -Pncg -8 ncgen.l
rm -f ncgenl.c
sed -e s/lex.ncg.c/ncgenl.c/g <lex.ncg.c >ncgenl.c
Expand Down

0 comments on commit e710027

Please sign in to comment.