summaryrefslogtreecommitdiff
path: root/tests/suite/test-ciphersuite-names.sh
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-11-10 10:34:56 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-11-12 14:43:02 +0100
commit53ac61b831b2cfce9833f6c01fb65eb7362dc170 (patch)
tree6af31ff7f9e74b8becd49633d5122a11bed232bf /tests/suite/test-ciphersuite-names.sh
parentf55d4400abdfa113334da80214beda88bea0c5a4 (diff)
downloadgnutls-53ac61b831b2cfce9833f6c01fb65eb7362dc170.tar.gz
tests: suite: don't run shell scripts with valgrind
Diffstat (limited to 'tests/suite/test-ciphersuite-names.sh')
-rwxr-xr-xtests/suite/test-ciphersuite-names.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/suite/test-ciphersuite-names.sh b/tests/suite/test-ciphersuite-names.sh
new file mode 100755
index 0000000000..a00fa482de
--- /dev/null
+++ b/tests/suite/test-ciphersuite-names.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+srcdir="${srcdir:-.}"
+top_builddir="${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"