tor-browser

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

runPLTests.sh (1213B)


      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 # runPLTests.sh
      8 #
      9 
     10 curdir=`pwd`
     11 cd ../common
     12 . ./libpkix_init.sh > /dev/null
     13 cd ${curdir}
     14 
     15 testunit="PKIX_PL"
     16 
     17 totalErrors=0
     18 moduleErrors=0
     19 systemErrors=0
     20 pkiErrors=0
     21 quiet=0
     22 
     23 checkMemArg=""
     24 arenasArg=""
     25 quietArg=""
     26 
     27 ### ParseArgs
     28 myParseArgs() # args
     29 {
     30    while [ $# -gt 0 ]; do
     31        if [ $1 = "-checkmem" ]; then
     32            checkMemArg=$1
     33        elif [ $1 = "-quiet" ]; then
     34            quietArg=$1
     35            quiet=1
     36        elif [ $1 = "-arenas" ]; then
     37            arenasArg=$1
     38        fi
     39        shift
     40    done
     41 }
     42 
     43 myParseArgs $*
     44 
     45 testHeadingEcho
     46 
     47 echo "RUNNING tests in pki";
     48 cd pki;
     49 runPLTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
     50 pkiErrors=$?
     51 
     52 echo "RUNNING tests in system";
     53 cd ../system;
     54 runPLTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
     55 systemErrors=$?
     56 
     57 echo "RUNNING tests in module";
     58 cd ../module;
     59 runPLTests.sh ${arenasArg} ${checkMemArg} ${quietArg}
     60 moduleErrors=$?
     61 
     62 totalErrors=`expr $moduleErrors + $systemErrors + $pkiErrors`
     63 
     64 testEndingEcho
     65 
     66 exit ${totalErrors}