need to set -e many of the .sh programs

This commit is contained in:
dmh 2015-05-16 15:46:39 -06:00
parent a14fd0b3b5
commit ab5022256d
14 changed files with 1543 additions and 1190 deletions

2
cf
View File

@ -123,7 +123,7 @@ FLAGS="$FLAGS --disable-examples"
#FLAGS="$FLAGS --disable-testsets"
#FLAGS="$FLAGS --disable-dap-remote-tests"
#FLAGS="$FLAGS --enable-dap-auth-tests"
FLAGS="$FLAGS --enable-doxygen"
#FLAGS="$FLAGS --enable-doxygen"
#FLAGS="$FLAGS --enable-logging"
#FLAGS="$FLAGS --disable-diskless"
#FLAGS="$FLAGS --enable-mmap"

View File

@ -5,7 +5,7 @@
#ifndef DEBUG_H
#define DEBUG_H
#if 0
#if 1
#define DAPDEBUG 1
#define OCDEBUG 1
#endif

View File

@ -1,12 +1,12 @@
TOP="/home/dmh/git/netcdf-c"
#TOP="/cygdrive/f/git/netcdf-c"
#TOP="/home/dmh/git/netcdf-c"
TOP="/cygdrive/f/git/netcdf-c"
alias xx="cd ..;make; cd libdap2"
PARMS=""; ARGS=""; CON="" ; CE=""; OCON="" ; VAR=""; SHARP='#'
alias q0=;alias qq=;alias qv=;alias q=;alias qh=;alias qqh=;alias qall=;alias qv=;alias qo=;
F="file://${TOP}/ncdap_test/testdata3/test.02"
F="file://${TOP}/ncdap_test/testdata3/synth9"
if test -f ./ncd ; then
PROG=./ncd

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
#!/bin/sh
set -e
#set -x
quiet=0
leakcheck=0

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
#X="-x"
#grind="checkleaks"

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
#X="-x"
#grind="checkleaks"

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
# if this is part of a distcheck action, then this script
# will be executed in a different directory
# than the one containing it; so capture the path to this script

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
# if this is part of a distcheck action, then this script
# will be executed in a different directory
# than the one containing it; so capture the path to this script

View File

@ -1,6 +1,7 @@
#!/bin/sh
#set -x
set -e
quiet=0
leakcheck=0
timing=0
@ -244,7 +245,7 @@ for i in $WHICHTESTS ; do
*) echo "Unknown which test: $i" ;;
esac
rm -f ./.dodsrc ./.ocrc
rm -f ./.dodsrc ./.ocrc ./.daprc
cd ${RESULTSDIR}
for t in ${TESTSET} ; do
@ -252,24 +253,20 @@ for t in ${TESTSET} ; do
#index=`expr index "${t}" ";"`
#echo index: $index
if [ "$myplatform" = "Darwin" ]; then
index=`echo "${t}" | sed -n "s/;.*//p" | wc -c`
index=`echo "${t}" | sed -n "s/;.*//p" | wc -c`
if (( $index == 0 )) ; then
constrained=0
else
constrained=1
fi
else
index=`expr index "${t}" ";"`
if index=`expr index "${t}" ";"` ; then ignore=1; fi # avoid set -e
if test "x$index" = "x0" ; then
constrained=0
else
constrained=1
fi
fi
if test "x$constrained" = "x0" ; then # No constraint

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
# if this is part of a distcheck action, then this script
# will be executed in a different directory
# than the one containing it; so capture the path to this script
@ -17,5 +19,5 @@ if [ `uname | cut -d "_" -f 1` = "MINGW32" ]; then
fi
cd ${builddir}/ncdap_test
sh ${srcdir}/tst_remote.sh "$srcdir" "$builddir" "3" "" ""
sh ${srcdir}/tst_remote.sh "$srcdir" "$builddir" "3" "" ""
exit

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
# if this is part of a distcheck action, then this script
# will be executed in a different directory
# than the one containing it; so capture the path to this script

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
# if this is part of a distcheck action, then this script
# will be executed in a different directory
# than the one containing it; so capture the path to this script

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
# if this is part of a distcheck action, then this script
# will be executed in a different directory
# than the one containing it; so capture the path to this script