summaryrefslogtreecommitdiff
path: root/tests/suite/test-ciphersuite-names.sh
blob: a5c66099d961c316ddbf4f01ca9a152363c3a2bf (plain)
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
#!/bin/sh

: ${srcdir=.}
: ${top_builddir=../..}

nodejs --help >/dev/null 2>&1
if test $? = 0; then
	NODEJS=nodejs
else
	node --help >/dev/null 2>&1
	if test $? = 0; then
		NODEJS=node
	fi
fi

if test -z "${NODEJS}"; then
	echo "You need nodejs to run this test"
	exit 77
fi

set -e

mkdir -p "${top_builddir}/tests/suite/ciphersuite"
"${srcdir}/ciphersuite/scan-gnutls.sh" > "${top_builddir}/tests/suite/ciphersuite/gnutls-ciphers.js"
srcdir="${srcdir}/ciphersuite" builddir="${top_builddir}/tests/suite/ciphersuite" ${NODEJS} "${srcdir}/ciphersuite/test-ciphers.js"