Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #!/bin/sh |
michael@0 | 2 | # |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | # |
michael@0 | 7 | # runTests.sh |
michael@0 | 8 | # |
michael@0 | 9 | |
michael@0 | 10 | curdir=`pwd` |
michael@0 | 11 | cd ../common |
michael@0 | 12 | . ./libpkix_init.sh > /dev/null |
michael@0 | 13 | cd ${curdir} |
michael@0 | 14 | |
michael@0 | 15 | testunit="PKIX" |
michael@0 | 16 | |
michael@0 | 17 | totalErrors=0 |
michael@0 | 18 | utilErrors=0 |
michael@0 | 19 | crlselErrors=0 |
michael@0 | 20 | paramsErrors=0 |
michael@0 | 21 | resultsErrors=0 |
michael@0 | 22 | topErrors=0 |
michael@0 | 23 | checkerErrors=0 |
michael@0 | 24 | certselErrors=0 |
michael@0 | 25 | quiet=0 |
michael@0 | 26 | |
michael@0 | 27 | checkMemArg="" |
michael@0 | 28 | arenasArg="" |
michael@0 | 29 | quietArg="" |
michael@0 | 30 | memText="" |
michael@0 | 31 | |
michael@0 | 32 | ### ParseArgs |
michael@0 | 33 | ParseArgs() # args |
michael@0 | 34 | { |
michael@0 | 35 | while [ $# -gt 0 ]; do |
michael@0 | 36 | if [ $1 = "-checkmem" ]; then |
michael@0 | 37 | checkMemArg=$1 |
michael@0 | 38 | memText=" (Memory Checking Enabled)" |
michael@0 | 39 | elif [ $1 = "-quiet" ]; then |
michael@0 | 40 | quietArg=$1 |
michael@0 | 41 | quiet=1 |
michael@0 | 42 | elif [ $1 = "-arenas" ]; then |
michael@0 | 43 | arenasArg=$1 |
michael@0 | 44 | fi |
michael@0 | 45 | shift |
michael@0 | 46 | done |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | ParseArgs $* |
michael@0 | 50 | |
michael@0 | 51 | testHeadingEcho |
michael@0 | 52 | |
michael@0 | 53 | echo "RUNNING tests in certsel"; |
michael@0 | 54 | cd certsel; |
michael@0 | 55 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 56 | certselErrors=$? |
michael@0 | 57 | |
michael@0 | 58 | echo "RUNNING tests in checker"; |
michael@0 | 59 | cd ../checker; |
michael@0 | 60 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 61 | checkerErrors=$? |
michael@0 | 62 | |
michael@0 | 63 | echo "RUNNING tests in results"; |
michael@0 | 64 | cd ../results; |
michael@0 | 65 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 66 | resultsErrors=$? |
michael@0 | 67 | |
michael@0 | 68 | echo "RUNNING tests in params"; |
michael@0 | 69 | cd ../params; |
michael@0 | 70 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 71 | paramsErrors=$? |
michael@0 | 72 | |
michael@0 | 73 | echo "RUNNING tests in crlsel"; |
michael@0 | 74 | cd ../crlsel; |
michael@0 | 75 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 76 | crlselErrors=$? |
michael@0 | 77 | |
michael@0 | 78 | echo "RUNNING tests in store"; |
michael@0 | 79 | cd ../store; |
michael@0 | 80 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 81 | storeErrors=$? |
michael@0 | 82 | |
michael@0 | 83 | echo "RUNNING tests in util"; |
michael@0 | 84 | cd ../util; |
michael@0 | 85 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 86 | utilErrors=$? |
michael@0 | 87 | |
michael@0 | 88 | echo "RUNNING tests in top"; |
michael@0 | 89 | cd ../top; |
michael@0 | 90 | runTests.sh ${arenasArg} ${checkMemArg} ${quietArg} |
michael@0 | 91 | topErrors=$? |
michael@0 | 92 | |
michael@0 | 93 | totalErrors=`expr ${certselErrors} + ${checkerErrors} + ${resultsErrors} + ${paramsErrors} + ${crlselErrors} + ${storeErrors} + ${utilErrors} + ${topErrors}` |
michael@0 | 94 | |
michael@0 | 95 | testEndingEcho |
michael@0 | 96 | |
michael@0 | 97 | exit ${totalErrors} |
michael@0 | 98 |