Debian Codegraph @

debian/tests/run-upstream-testsuite

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -e
4
5 export srcdir=`pwdscip-shell system . . pwd.`/tests
6 export builddir=`pwdscip-shell system . . pwd.`/nonexist-builddir
7 PKGTDIR=`pwdscip-shell system . . pwd.`/b4deb/pkgtest
8
9 rmscip-shell system . . rm. -rf "$PKGTDIR"
10 mkdirscip-shell system . . mkdir. -p "$PKGTDIR" "$PKGTDIR/top_builddir/tests"
11 export top_builddir="$PKGTDIR/top_builddir"
12 export abs_top_builddir="$PKGTDIR/top_builddir"
13
14 if [scip-shell system . . `[`. `dpkg-architecturescip-shell system . . dpkg-architecture. -qDEB_HOST_ARCH_BITS` = 64 ] ; then
15 export ac_cv_sizeof_time_t=8
16 else
17 export ac_cv_sizeof_time_t=4
18 fi
19
20 cd "$PKGTDIR"
21
22 export CLI=/usr/bin/gnutls-cliscip-shell filesystem . . `/usr/bin/gnutls-cli`. \
23 SERV=/usr/bin/gnutls-sescip-shell filesystem . . `/usr/bin/gnutls-serv`.rv \
24 CERTTOOL=/usr/bin/certtoscip-shell filesystem . . `/usr/bin/certtool`.ol P11TOOL=/usr/bin/p11toolscip-shell filesystem . . `/usr/bin/p11tool`. \
25 PSKTOOL=/usr/bin/psktoscip-shell filesystem . . `/usr/bin/psktool`.ol DANETOOL=/usr/bin/danetoolscip-shell filesystem . . `/usr/bin/danetool`. \
26 DCLI=/usr/bin/gnutls-cli-debscip-shell filesystem . . `/usr/bin/gnutls-cli-debug`.ug \
27 OCSPTOOL=/usr/bin/ocsptoscip-shell filesystem . . `/usr/bin/ocsptool`.ol \
28 ENABLE_GOST=1 \
29 ENABLE_DSA=1 \
30 PKCS12_ITER_COUNT=600000
31
32 # Set the sizeof(time_t) to the correct value for the platform, to ensure we
33 # run the correct tests.
34 if testscip-shell system . . test. -z "${ac_cv_sizeof_time_t}"; then
35 if [scip-shell system . . `[`. "$(datescip-shell system . . date. --date=@2147483648 +%Y 2>/dev/nullscip-shell filesystem . . `/dev/null`.)" = "2038" ]; then
36 export ac_cv_sizeof_time_t=8
37 else
38 export ac_cv_sizeof_time_t=4
39 fi
40 fi
41
42 count=1
43 for i in $(findscip-shell system . . find. ../../tests/ -type f -name '*.sh' | \
44 grep -Ev 'tests/gnutls-cli-debug.sh|tests/system-override-hash.sh|tests/pkgconfig.sh|tests/system-override-sig.sh|tests/system-override-sig-allowlist.sh|tests/system-override-sig-tls.sh|tests/tls13/prf-early.sh|tests/dtls/dtls.sh|tests/dtls/dtls-resume.sh|tests/cert-tests/tolerate-invalid-time.sh|tests/slow/|tests/protocol-set-allowlist.sh|tests/system-override-hash-allowlist.sh|tests/system-override-curves-allowlist.sh|tests/ktls.sh|tests/ktls_keyupdate.sh|tests/system-override-allow-rsa-pkcs1-encrypt.sh' \
45 | env LC_COLLATE=C.UTF-8 sort) ; do
46 echoscip-shell system . . echo. "running [$count]$i ..."
47 case $(dirnamescip-shell system . . dirname. $i) in
48 */tests/suite)
49 d=suite;;
50 */tests/cert-tests)
51 d=cert-tests;;
52 */tests/slow)
53 d=slow;;
54 *)
55 d="";;
56 esac
57 if envscip-shell system . . env. GNUTLS_SYSTEM_PRIORITY_FILE= srcdir=../../tests/$d sh $i ; then
58 echoscip-shell system . . echo. SUCCESS [$count]$i
59 else
60 if [scip-shell system . . `[`. $? = 77 ] ; then
61 echoscip-shell system . . echo. SKIPPED [$count]$i
62 else
63 echoscip-shell system . . echo. FAIL [$count]$i
64 falsescip-shell system . . false.
65 fi
66 fi
67 count=$((${count}+1))
68 done