summaryrefslogtreecommitdiff
path: root/tests/suite/ciphersuite/test-ciphersuites.sh
blob: 028a92f8e7a52a72885986e18ba96bcbdc133d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

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" = "z";then
	echo "You need nodejs to run this test"
	exit 77
fi

set -e

cd ciphersuite && ( \
./scan-gnutls.sh > gnutls-ciphers.js && \
$NODEJS test-ciphers.js )