tor-browser

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

runtest.sh (646B)


      1 #!/bin/sh
      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 TESTDIR=${1-.}
      8 COMMAND=${2-run}
      9 DEFAULT_TESTS="aes aesgcm dsa ecdsa hmac kas kbkdf tls ike rng rsa sha tdea"
     10 shift;
     11 shift;
     12 TESTS=${@-$DEFAULT_TESTS}
     13 result=0
     14 for i in $TESTS
     15 do
     16    echo "********************Running $i tests"
     17    sh ./${i}.sh ${TESTDIR} ${COMMAND}
     18    last_result=$?
     19    if [ $last_result != 0 ]; then
     20 echo "CAVS test $i had $last_result failure(s)"
     21    fi
     22    result=`expr $result + $last_result`
     23 done
     24 exit $result