tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

tlsinterop.sh (1838B)


      1 #!/bin/bash
      2 #
      3 # This Source Code Form is subject to the terms of the Mozilla Public
      4 # License, v. 2.0. If a copy of the MPL was not distributed with this
      5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      6 
      7 ########################################################################
      8 #
      9 # tests/tlsinterop/tlsinterop.sh
     10 #
     11 # Script to drive the tls interop tests
     12 #
     13 ########################################################################
     14 
     15 tlsinterop_init()
     16 {
     17  SCRIPTNAME="tlsinterop.sh"
     18  if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ] ; then
     19    cd ../common
     20    . ./init.sh
     21  fi
     22 
     23  gnutls-cli --version
     24  openssl version
     25 
     26  export PATH=$BINDIR:$PATH
     27  export SERVER_UTIL=${BINDIR}/selfserv
     28  export CLIENT_UTIL=${BINDIR}/tstclnt
     29  export STRSCLNT_UTIL=${BINDIR}/strsclnt
     30 
     31  cd ${HOSTDIR}
     32  TLSINTEROP=${TLSINTEROP:=tlsinterop}
     33  REF="8c2eff51a86fadec3141f199b32763dd99bfb226"
     34  if [ ! -d "$TLSINTEROP" ]; then
     35    ${QADIR}/../fuzz/config/git-copy.sh https://gitlab.com/redhat-crypto/tests/interop/ $REF "$TLSINTEROP"
     36  fi
     37 
     38  cd ${HOSTDIR}/${TLSINTEROP}
     39  echo "list tests"
     40  tmt tests ls -f 'tag:interop-nss' -f 'tag:-interop-nss-broken'
     41  echo "discover tests"
     42  tmt run plan -n interop tests -f 'tag:interop-nss' -f 'tag:-interop-nss-broken' discover -v
     43 
     44  html_head "tlsinterop test"
     45 }
     46 
     47 tlsinterop_cleanup()
     48 {
     49  cd ${QADIR}
     50  . common/cleanup.sh
     51 }
     52 
     53 tlsinterop_run_tests()
     54 {
     55  extra_arg=""
     56  if [[ -n $1 ]]; then
     57      extra_arg="-f 'tag:interop-$1'"
     58  fi
     59  cd ${HOSTDIR}/${TLSINTEROP}
     60  eval tmt tests ls -f 'tag:interop-nss' -f 'tag:-interop-nss-broken' $extra_arg
     61  for t in $(eval tmt tests ls -f 'tag:interop-nss' -f 'tag:-interop-nss-broken' $extra_arg); do
     62    tmt run -av plans -n interop provision -h local --feeling-safe execute -h tmt --interactive tests -n "$t"
     63    html_msg $? 0 "tlsinterop" "$t"
     64  done
     65 }