Mercurial > dropbear
annotate libtommath/testme.sh @ 1655:f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
* make key-generation compliant to FIPS 186.4
* fix includes in tommath_class.h
* update fuzzcorpus instead of error-out
* fixup fuzzing make-targets
* update Makefile.in
* apply necessary patches to ltm sources
* clean-up not required ltm files
* update to vanilla ltm 1.1.0
this already only contains the required files
* remove set/get double
author | Steffen Jaeckel <s_jaeckel@gmx.de> |
---|---|
date | Mon, 16 Sep 2019 15:50:38 +0200 |
parents | 8bba51a55704 |
children | 1051e4eea25a |
rev | line source |
---|---|
1436 | 1 #!/bin/bash |
2 # | |
3 # return values of this script are: | |
4 # 0 success | |
5 # 128 a test failed | |
6 # >0 the number of timed-out tests | |
7 | |
8 set -e | |
9 | |
10 if [ -f /proc/cpuinfo ] | |
11 then | |
12 MAKE_JOBS=$(( ($(cat /proc/cpuinfo | grep -E '^processor[[:space:]]*:' | tail -n -1 | cut -d':' -f2) + 1) * 2 + 1 )) | |
13 else | |
14 MAKE_JOBS=8 | |
15 fi | |
16 | |
17 ret=0 | |
18 TEST_CFLAGS="" | |
19 | |
20 _help() | |
21 { | |
22 echo "Usage options for $(basename $0) [--with-cc=arg [other options]]" | |
23 echo | |
24 echo "Executing this script without any parameter will only run the default configuration" | |
25 echo "that has automatically been determined for the architecture you're running." | |
26 echo | |
27 echo " --with-cc=* The compiler(s) to use for the tests" | |
28 echo " This is an option that will be iterated." | |
29 echo | |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
30 echo " --test-vs-mtest=* Run test vs. mtest for '*' operations." |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
31 echo " Only the first of each options will be taken into account." |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
32 echo |
1436 | 33 echo "To be able to specify options a compiler has to be given." |
34 echo "All options will be tested with all MP_xBIT configurations." | |
35 echo | |
36 echo " --with-{m64,m32,mx32} The architecture(s) to build and test for," | |
37 echo " e.g. --with-mx32." | |
38 echo " This is an option that will be iterated, multiple selections are possible." | |
39 echo " The mx32 architecture is not supported by clang and will not be executed." | |
40 echo | |
41 echo " --cflags=* Give an option to the compiler," | |
42 echo " e.g. --cflags=-g" | |
43 echo " This is an option that will always be passed as parameter to CC." | |
44 echo | |
45 echo " --make-option=* Give an option to make," | |
46 echo " e.g. --make-option=\"-f makefile.shared\"" | |
47 echo " This is an option that will always be passed as parameter to make." | |
48 echo | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
49 echo " --with-low-mp Also build&run tests with -DMP_{8,16,32}BIT." |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
50 echo |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
51 echo " --mtest-real-rand Use real random data when running mtest." |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
52 echo |
1436 | 53 echo "Godmode:" |
54 echo | |
55 echo " --all Choose all architectures and gcc and clang as compilers" | |
56 echo | |
57 echo " --help This message" | |
58 exit 0 | |
59 } | |
60 | |
61 _die() | |
62 { | |
63 echo "error $2 while $1" | |
64 if [ "$2" != "124" ] | |
65 then | |
66 exit 128 | |
67 else | |
68 echo "assuming timeout while running test - continue" | |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
69 local _tail="" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
70 which tail >/dev/null && _tail="tail -n 1 test_${suffix}.log" && \ |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
71 echo "last line of test_"${suffix}".log was:" && $_tail && echo "" |
1436 | 72 ret=$(( $ret + 1 )) |
73 fi | |
74 } | |
75 | |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
76 _make() |
1436 | 77 { |
78 echo -ne " Compile $1 $2" | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
79 suffix=$(echo ${1}${2} | tr ' ' '_') |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
80 CC="$1" CFLAGS="$2 $TEST_CFLAGS" make -j$MAKE_JOBS $3 $MAKE_OPTIONS > /dev/null 2>gcc_errors_${suffix}.log |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
81 errcnt=$(wc -l < gcc_errors_${suffix}.log) |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
82 if [[ ${errcnt} -gt 1 ]]; then |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
83 echo " failed" |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
84 cat gcc_errors_${suffix}.log |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
85 exit 128 |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
86 fi |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
87 } |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
88 |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
89 |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
90 _runtest() |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
91 { |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
92 make clean > /dev/null |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
93 _make "$1" "$2" "test_standalone" |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
94 local _timeout="" |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
95 which timeout >/dev/null && _timeout="timeout --foreground 90" |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
96 echo -e "\rRun test $1 $2" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
97 $_timeout ./test > test_${suffix}.log || _die "running tests" $? |
1436 | 98 } |
99 | |
100 _banner() | |
101 { | |
102 echo "uname="$(uname -a) | |
103 [[ "$#" != "0" ]] && (echo $1=$($1 -dumpversion)) || true | |
104 } | |
105 | |
106 _exit() | |
107 { | |
108 if [ "$ret" == "0" ] | |
109 then | |
110 echo "Tests successful" | |
111 else | |
112 echo "$ret tests timed out" | |
113 fi | |
114 | |
115 exit $ret | |
116 } | |
117 | |
118 ARCHFLAGS="" | |
119 COMPILERS="" | |
120 CFLAGS="" | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
121 WITH_LOW_MP="" |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
122 TEST_VS_MTEST="" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
123 MTEST_RAND="" |
1436 | 124 |
125 while [ $# -gt 0 ]; | |
126 do | |
127 case $1 in | |
128 "--with-m64" | "--with-m32" | "--with-mx32") | |
129 ARCHFLAGS="$ARCHFLAGS ${1:6}" | |
130 ;; | |
131 --with-cc=*) | |
132 COMPILERS="$COMPILERS ${1#*=}" | |
133 ;; | |
134 --cflags=*) | |
135 CFLAGS="$CFLAGS ${1#*=}" | |
136 ;; | |
137 --make-option=*) | |
138 MAKE_OPTIONS="$MAKE_OPTIONS ${1#*=}" | |
139 ;; | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
140 --with-low-mp) |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
141 WITH_LOW_MP="1" |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
142 ;; |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
143 --test-vs-mtest=*) |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
144 TEST_VS_MTEST="${1#*=}" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
145 if ! [ "$TEST_VS_MTEST" -eq "$TEST_VS_MTEST" ] 2> /dev/null |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
146 then |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
147 echo "--test-vs-mtest Parameter has to be int" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
148 exit -1 |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
149 fi |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
150 ;; |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
151 --mtest-real-rand) |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
152 MTEST_RAND="-DLTM_MTEST_REAL_RAND" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
153 ;; |
1436 | 154 --all) |
155 COMPILERS="gcc clang" | |
156 ARCHFLAGS="-m64 -m32 -mx32" | |
157 ;; | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
158 --help | -h) |
1436 | 159 _help |
160 ;; | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
161 *) |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
162 echo "Ignoring option ${1}" |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
163 ;; |
1436 | 164 esac |
165 shift | |
166 done | |
167 | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
168 # default to gcc if no compiler is defined but some other options |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
169 if [[ "$COMPILERS" == "" ]] && [[ "$ARCHFLAGS$MAKE_OPTIONS$CFLAGS" != "" ]] |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
170 then |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
171 COMPILERS="gcc" |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
172 # default to gcc and run only default config if no option is given |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
173 elif [[ "$COMPILERS" == "" ]] |
1436 | 174 then |
175 _banner gcc | |
176 _runtest "gcc" "" | |
177 _exit | |
178 fi | |
179 | |
180 archflags=( $ARCHFLAGS ) | |
181 compilers=( $COMPILERS ) | |
182 | |
183 # choosing a compiler without specifying an architecture will use the default architecture | |
184 if [ "${#archflags[@]}" == "0" ] | |
185 then | |
186 archflags[0]=" " | |
187 fi | |
188 | |
189 _banner | |
190 | |
1655
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
191 if [[ "$TEST_VS_MTEST" != "" ]] |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
192 then |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
193 make clean > /dev/null |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
194 _make "${compilers[0]} ${archflags[0]}" "$CFLAGS" "test" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
195 echo |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
196 _make "gcc" "$MTEST_RAND" "mtest" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
197 echo |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
198 echo "Run test vs. mtest for $TEST_VS_MTEST iterations" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
199 for i in `seq 1 10` ; do sleep 500 && echo alive; done & |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
200 alive_pid=$! |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
201 _timeout="" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
202 which timeout >/dev/null && _timeout="timeout --foreground 900" |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
203 $_TIMEOUT ./mtest/mtest $TEST_VS_MTEST | ./test > test.log |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
204 disown $alive_pid |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
205 kill $alive_pid 2>/dev/null |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
206 head -n 5 test.log |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
207 tail -n 2 test.log |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
208 exit 0 |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
209 fi |
f52919ffd3b1
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation (#79)
Steffen Jaeckel <s_jaeckel@gmx.de>
parents:
1470
diff
changeset
|
210 |
1436 | 211 for i in "${compilers[@]}" |
212 do | |
213 if [ -z "$(which $i)" ] | |
214 then | |
215 echo "Skipped compiler $i, file not found" | |
216 continue | |
217 fi | |
218 compiler_version=$(echo "$i="$($i -dumpversion)) | |
219 if [ "$compiler_version" == "clang=4.2.1" ] | |
220 then | |
221 # one of my versions of clang complains about some stuff in stdio.h and stdarg.h ... | |
222 TEST_CFLAGS="-Wno-typedef-redefinition" | |
223 else | |
224 TEST_CFLAGS="" | |
225 fi | |
226 echo $compiler_version | |
227 | |
228 for a in "${archflags[@]}" | |
229 do | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
230 if [[ $(expr "$i" : "clang") -ne 0 && "$a" == "-mx32" ]] |
1436 | 231 then |
232 echo "clang -mx32 tests skipped" | |
233 continue | |
234 fi | |
235 | |
1470
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
236 _runtest "$i $a" "$CFLAGS" |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
237 [ "$WITH_LOW_MP" != "1" ] && continue |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
238 _runtest "$i $a" "-DMP_8BIT $CFLAGS" |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
239 _runtest "$i $a" "-DMP_16BIT $CFLAGS" |
8bba51a55704
Update to libtommath v1.0.1
Matt Johnston <matt@ucc.asn.au>
parents:
1436
diff
changeset
|
240 _runtest "$i $a" "-DMP_32BIT $CFLAGS" |
1436 | 241 done |
242 done | |
243 | |
244 _exit |