File: tst_curlopt.sh

package info (click to toggle)
netcdf 1:4.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 104,952 kB
  • sloc: ansic: 228,683; sh: 10,980; yacc: 2,561; makefile: 1,319; lex: 1,173; xml: 173; awk: 2
file content (33 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

# These tests are intended to be run only manually.
# The idea is to gdb ncdump and check that the CURLOPT flags
# is being processed correctly.
# As a rule, you will need to set the breakpoint in
# NCD4_get_rcproperties

if test "x$srcdir" = x ; then srcdir=`pwd`; fi
. ../test_common.sh

# Figure our server; if none, then just stop
SVC=`${execdir}/findtestserver4 dap4 d4ts`
TESTCASE=test_atomic_types.nc

if test "x$SVC" = "x" ; then
echo "WARNING: Cannot locate test server"
exit
fi

URL="[log][dap4][show=fetch]${SVC}/testfiles/${TESTCASE}"

# Create the .daprc file
rm -f ./.daprc
echo '# tst_curlopt.sh' > ./.daprc
echo 'HTTP.READ.BUFFERSIZE=max' >> ./.daprc
echo 'HTTP.KEEPALIVE=60/60' >> ./.daprc
gdb --args ${NCDUMP} "${URL}"

# cleanup
rm -f ./.daprc

exit