source: trunk/test/testcompile.sh@ 39

Last change on this file since 39 was 30, checked in by rainer, 19 years ago

Release candidate 3 for version 2.2.0

File size: 18.3 KB
RevLine 
[1]1#! /bin/sh
2
[27]3#
4# Copyright Rainer Wichmann (2006)
5#
6# License Information:
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20#
21
[30]22MAXTEST=57; export MAXTEST
[1]23
[30]24run_flawfinder ()
25{
26 flawfinder --minlevel=3 --quiet src/s*.c | \
27 egrep '^No hits found.' >/dev/null 2>&1
28 if [ $? -eq 0 ]; then
29 [ -z "$quiet" ] && log_ok $2 ${MAXTEST} "$TEST";
30 else
31 flawfinder --minlevel=3 --quiet src/s*.c >test_log 2>&1
32 [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST";
33 return 1
34 fi
35}
36
[22]37run_smatch ()
38{
39 export CDIR=`pwd`;
40
41 if [ -z "$doall" ]; then
42 [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (smatch)";
43 return 0
44 fi
45
46 if [ "x$3" = "xdebug" ]; then memcheck=debug; else memcheck=simple; fi
47 if [ -f ../sm_scripts/smatch.pm ]; then
48 (
49 cd ../sm_scripts;
50
51 for i in ${CDIR}/*.c.sm ; do
52 # echo $i;
53 cat $i | ./unreached_code.pl;
54 cat $i | ./ampersand_missing.sh;
55 cat $i | ./uninitialized.pl;
56 cat $i | ./eqeq.pl;
57 cat $i | ./for_bounds.pl;
58 cat $i | ./unchecked_returns.pl;
59 cat $i | ./unreached_code.pl;
60 cat $i | ./uninitialized.pl;
61 # from http://people.redhat.com/mstefani/wine/smatch/
62 if [ -f ./while_for_check.pl ]; then
63 cat $i | ./while_for_check.pl;
64 fi
65 # --> end wine <--
66 # samhain specific
67 if [ $memcheck = xsimple ]; then
68 if [ -f ./samhain_unfree.pl ]; then
69 cat $i | ./samhain_unfree.pl | \
70 egrep -v 'x_cutest_.*Test_' | \
71 egrep -v 'x_sh_unix.c .... .... sh_unix_copyenv';
72 fi
73 fi
74 if [ $memcheck = xdebug ]; then
75 if [ -f ./samhain_unfree_debug.pl ]; then
76 cat $i | ./samhain_unfree_debug.pl | \
77 egrep -v 'x_cutest_.*Test_' | \
78 egrep -v 'x_sh_unix.c .... .... sh_unix_copyenv';
79 fi
80 fi
81 # --> end samhain specific <--
82 #cat $i | ./unfree.pl | \
83 # egrep -v 'x_cutest_.*Test_' | \
84 # grep -v 'x_sh_unix.c .... .... sh_unix_copyenv';
85 touch list_null_funcs_uniq;
86 cat $i | ./deference_check.pl;
87 rm -f list_null_funcs_uniq;
88 rm -f $i
89 done
90 ) >test_log_smatch 2>&1
91 if [ -f test_log_smatch ]; then
92 lines=`cat test_log_smatch | wc -l`
93 if [ $lines -ne 0 ]; then
94 cat test_log_smatch
95 rm -f test_log_smatch
96 [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST (smatch)";
97 return 1
98 fi
99 fi
100 [ -z "$quiet" ] && log_ok $2 ${MAXTEST} "$TEST (smatch)";
101 return 0
102 fi
103 [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (smatch)";
104 return 0
105}
106
[1]107testmake ()
108{
[19]109 fail=0
[1]110 if test x$1 = x0; then
[19]111 [ -z "$verbose" ] || log_msg_ok "configure... $TEST";
[22]112 $MAKE ${SMATCH} cutest > /dev/null 2>> test_log
[1]113 if test x$? = x0; then
[19]114 [ -z "$verbose" ] || log_msg_ok "make cutest... $TEST";
[1]115 else
[19]116 [ -z "$quiet" ] && log_msg_fail "make cutest... $TEST";
117 fail=1
[1]118 fi
119 else
[19]120 [ -z "$quiet" ] && log_msg_fail "configure... $TEST";
121 if [ x"$3" = xskip ]; then
122 [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST";
123 fi
124 fail=1
[1]125 fi
[19]126 if [ $fail -eq 1 ]; then
127 [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST";
128 return 1
129 fi
130 [ -z "$quiet" ] && log_ok $2 ${MAXTEST} "$TEST";
131 return 0
[1]132}
133
134testcompile ()
135{
[19]136 log_start "COMPILE"
[1]137
[22]138 if [ -f /usr/local/gcc-smatch/bin/gcc ]; then
139 SAVE_CC="${CC}"
140 SMATCH="DBGDEF=--smatch"; export SMATCH
141 CC="/usr/local/gcc-smatch/bin/gcc"; export CC
142 fi
143
[19]144 num=0
145 numfail=0
146
[1]147 #
[30]148 # test flawfinder
149 #
150 TEST="${S}check w/flawfinder${E}"
151 #
152 #
153 let "num = num + 1" >/dev/null
154 FLAWFINDER=`find_path flawfinder`
155 #
156 if [ -z "$FLAWFINDER" ]; then
157 log_skip $num $MAXTEST 'check w/flawfinder (not in PATH)'
158 else
159 run_flawfinder 0 $num || let "numfail = numfail + 1" >/dev/null
160 fi
161 #
162
163 #
[1]164 # test standalone compilation
165 #
[22]166 TEST="${S}standalone w/suidcheck${E}"
[1]167 #
168 if test -r "Makefile"; then
169 $MAKE distclean
170 fi
171 #
172 ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-suidcheck > /dev/null 2>> test_log
173 #
[19]174 let "num = num + 1" >/dev/null
175 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]176 let "num = num + 1" >/dev/null
177 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]178
179 #
180 # test standalone compilation
181 #
[22]182 TEST="${S}standalone w/mounts-check w/userfiles${E}"
[1]183 #
184 if test -r "Makefile"; then
185 $MAKE distclean
186 fi
187 #
188 ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-mounts-check --enable-userfiles > /dev/null 2>> test_log
189 #
[19]190 let "num = num + 1" >/dev/null
191 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]192 let "num = num + 1" >/dev/null
193 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]194
195
196 #
197 # test standalone compilation
198 #
[22]199 TEST="${S}standalone w/timeserver and w/msgqueue${E}"
[1]200 #
201 if test -r "Makefile"; then
202 $MAKE clean
203 fi
204 #
205 ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-message-queue --with-timeserver=127.0.0.1 > /dev/null 2>> test_log
206 #
[19]207 let "num = num + 1" >/dev/null
208 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]209 let "num = num + 1" >/dev/null
210 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]211
212 #
213 # test standalone compilation with --with-nocl=PW
214 #
[22]215 TEST="${S}standalone w/nocl${E}"
[1]216 #
217 if test -r "Makefile"; then
218 $MAKE clean
219 fi
220 #
221 ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --enable-nocl="owl" --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
222 #
[19]223 let "num = num + 1" >/dev/null
224 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]225 let "num = num + 1" >/dev/null
226 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]227
228 #
229 # test standalone compilation w/ debug
230 #
[22]231 TEST="${S}standalone w/debug${E}"
[1]232 #
233 if test -r "Makefile"; then
234 $MAKE clean
235 fi
236 #
237 ${TOP_SRCDIR}/configure --quiet --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
238 #
[19]239 let "num = num + 1" >/dev/null
240 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]241 let "num = num + 1" >/dev/null
242 run_smatch $? $num debug || let "numfail = numfail + 1" >/dev/null
[1]243
244 #
245 # test standalone compilation w/ gpg
246 #
[22]247 TEST="${S}standalone w/gpg${E}"
[1]248 #
[19]249 GPG=`find_path gpg`
250 let "num = num + 1" >/dev/null
251 #
252 if [ -z "$GPG" ]; then
253 log_skip $num $MAXTEST 'gpg not in PATH'
[29]254 let "num = num + 1" >/dev/null
[19]255 else
256 if test -r "Makefile"; then
[1]257 $MAKE clean
[19]258 fi
259 #
260 ${TOP_SRCDIR}/configure --quiet --with-gpg=$GPG --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
261 #
262 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]263 let "num = num + 1" >/dev/null
264 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]265 fi
266
267 #
268 # test standalone compilation w/stealth
269 #
[22]270 TEST="${S}standalone w/stealth${E}"
[1]271 #
272 if test -r "Makefile"; then
273 $MAKE clean
274 fi
275 #
276 ${TOP_SRCDIR}/configure --quiet --enable-stealth=128 --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
277 #
[19]278 let "num = num + 1" >/dev/null
279 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]280 let "num = num + 1" >/dev/null
281 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]282
283 #
284 # test standalone compilation w/logwatch
285 #
[22]286 TEST="${S}standalone w/login-watch${E}"
[1]287 #
288 if test -r "Makefile"; then
289 $MAKE clean
290 fi
291 #
292 ${TOP_SRCDIR}/configure --quiet --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
293 #
[19]294 let "num = num + 1" >/dev/null
295 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]296 let "num = num + 1" >/dev/null
297 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]298
299 #
[19]300 # test standalone compilation w/mysql
301 #
[22]302 TEST="${S}standalone w/mysql${E}"
[19]303 #
304 if test -r "Makefile"; then
305 $MAKE clean
306 fi
307 #
308 ${TOP_SRCDIR}/configure --quiet --enable-xml-log --with-database=mysql --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
309 #
310 let "num = num + 1" >/dev/null
311 testmake $? $num "skip" || let "numfail = numfail + 1" >/dev/null
[22]312 let "num = num + 1" >/dev/null
313 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[19]314
315 #
316 # test standalone compilation w/postgresql
317 #
[22]318 TEST="${S}standalone w/postgresql${E}"
[19]319 #
320 if test -r "Makefile"; then
321 $MAKE clean
322 fi
323 #
324 ${TOP_SRCDIR}/configure --quiet --enable-xml-log --with-database=postgresql --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
325 #
326 let "num = num + 1" >/dev/null
327 testmake $? $num "skip" || let "numfail = numfail + 1" >/dev/null
[22]328 let "num = num + 1" >/dev/null
329 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[19]330
331 #
[1]332 # test standalone compilation
333 #
[22]334 TEST="${S}standalone w/o mail${E}"
[1]335 #
336 if test -r "Makefile"; then
337 $MAKE clean
338 fi
339 #
340 ${TOP_SRCDIR}/configure --quiet --disable-mail --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
341 #
[19]342 let "num = num + 1" >/dev/null
343 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]344 let "num = num + 1" >/dev/null
345 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]346
347 #
348 # test standalone compilation
349 #
[22]350 TEST="${S}standalone w/o external${E}"
[1]351 #
352 if test -r "Makefile"; then
353 $MAKE clean
354 fi
355 #
356 ${TOP_SRCDIR}/configure --quiet --disable-external-scripts --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
357 #
[19]358 let "num = num + 1" >/dev/null
359 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]360 let "num = num + 1" >/dev/null
361 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]362
363 # echo; echo "${S}__ TEST CLIENT/SERVER __${E}"; echo;
364
365 #
366 # test client/server compilation
367 #
368 TEST="${S}client/server application w/timeserver${E}"
369 #
370 if test -r "Makefile"; then
371 $MAKE clean
372 fi
373 #
374 ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --with-timeserver=127.0.0.1 > /dev/null 2>> test_log
375 #
[19]376 let "num = num + 1" >/dev/null
377 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]378 let "num = num + 1" >/dev/null
379 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[19]380
[1]381 if test -r "Makefile"; then
382 $MAKE clean
383 fi
384 #
385 ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --with-timeserver=127.0.0.1 > /dev/null 2>> test_log
386 #
[19]387 let "num = num + 1" >/dev/null
388 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]389 let "num = num + 1" >/dev/null
390 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]391
392 #
393 # test c/s compilation w/ gpg
394 #
395 TEST="${S}client/server application w/gpg${E}"
396 #
[19]397 GPG=`find_path gpg`
398 let "num = num + 1" >/dev/null
[1]399 #
[19]400 if [ -z "$GPG" ]; then
401 log_skip $num $MAXTEST 'gpg not in PATH'
[29]402 let "num = num + 3" >/dev/null
[19]403 else
404 if test -r "Makefile"; then
[1]405 $MAKE clean
[19]406 fi
407 #
408 ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-srp --with-gpg=$GPG --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
409 #
410 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]411 let "num = num + 1" >/dev/null
412 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[19]413 #
414 if test -r "Makefile"; then
415 $MAKE clean
416 fi
417 #
418 ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-srp --with-gpg=$GPG --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
419 #
420 let "num = num + 1" >/dev/null
421 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]422 let "num = num + 1" >/dev/null
423 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]424 fi
425
426
427 #
428 # test client/server compilation
429 #
430 TEST="${S}client/server application w/o srp${E}"
431 #
432 if test -r "Makefile"; then
433 $MAKE clean
434 fi
435 #
436 ${TOP_SRCDIR}/configure --quiet --enable-network=server --disable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
437 #
[19]438 let "num = num + 1" >/dev/null
439 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]440 let "num = num + 1" >/dev/null
441 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]442 #
443 if test -r "Makefile"; then
444 $MAKE clean
445 fi
446 #
447 ${TOP_SRCDIR}/configure --quiet --enable-network=client --disable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
448 #
[19]449 let "num = num + 1" >/dev/null
450 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]451 let "num = num + 1" >/dev/null
452 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]453
454 #
455 # test client/server compilation w/ debug
456 #
457 TEST="${S}client/server application w/debug${E}"
458 #
459 if test -r "Makefile"; then
460 $MAKE clean
461 fi
462 #
463 ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
464 #
[19]465 let "num = num + 1" >/dev/null
466 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]467 let "num = num + 1" >/dev/null
468 run_smatch $? $num debug || let "numfail = numfail + 1" >/dev/null
[1]469 #
470 if test -r "Makefile"; then
471 $MAKE clean
472 fi
473 #
474 ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
475 #
[19]476 let "num = num + 1" >/dev/null
477 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]478 let "num = num + 1" >/dev/null
479 run_smatch $? $num debug || let "numfail = numfail + 1" >/dev/null
[1]480
481 #
482 # test client/server compilation w/stealth
483 #
484 TEST="${S}client/server application w/stealth${E}"
485 #
486 if test -r "Makefile"; then
487 $MAKE clean
488 fi
489 #
490 ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-srp --enable-stealth=128 --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
491 #
[19]492 let "num = num + 1" >/dev/null
493 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]494 let "num = num + 1" >/dev/null
495 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]496 #
497 if test -r "Makefile"; then
498 $MAKE clean
499 fi
500 #
501 ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-srp --enable-stealth=128 --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
502 #
[19]503 let "num = num + 1" >/dev/null
504 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]505 let "num = num + 1" >/dev/null
506 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]507
508 #
509 # test client/server compilation w/logwatch
510 #
511 TEST="${S}client/server application w/login-watch${E}"
512 #
513 if test -r "Makefile"; then
514 $MAKE clean
515 fi
516 #
517 ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-srp --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
518 #
[19]519 let "num = num + 1" >/dev/null
520 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]521 let "num = num + 1" >/dev/null
522 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]523 #
524 if test -r "Makefile"; then
525 $MAKE clean
526 fi
527 #
528 ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-srp --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
529 #
[19]530 let "num = num + 1" >/dev/null
531 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]532 let "num = num + 1" >/dev/null
533 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]534
535 #
536 # test client/server compilation
537 #
538 TEST="${S}client/server application w/o mail${E}"
539 #
540 if test -r "Makefile"; then
541 $MAKE clean
542 fi
543 #
544 ${TOP_SRCDIR}/configure --quiet --enable-network=server --disable-mail --enable-srp --enable-stealth=128 --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
545 #
[19]546 let "num = num + 1" >/dev/null
547 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]548 let "num = num + 1" >/dev/null
549 run_smatch $? $num debug || let "numfail = numfail + 1" >/dev/null
[1]550 #
551 if test -r "Makefile"; then
552 $MAKE clean
553 fi
554 #
555 ${TOP_SRCDIR}/configure --quiet --enable-network=client --disable-mail --enable-srp --enable-stealth=128 --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
556 #
[19]557 let "num = num + 1" >/dev/null
558 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]559 let "num = num + 1" >/dev/null
560 run_smatch $? $num debug || let "numfail = numfail + 1" >/dev/null
[1]561
562 #
563 # test client/server compilation
564 #
[22]565 TEST="${S}client/server application w/o external${E}"
[1]566 #
567 if test -r "Makefile"; then
568 $MAKE clean
569 fi
570 #
571 ${TOP_SRCDIR}/configure --quiet --enable-network=server --disable-srp --disable-external-scripts --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
572 #
[19]573 let "num = num + 1" >/dev/null
574 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]575 let "num = num + 1" >/dev/null
576 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[1]577 #
578 if test -r "Makefile"; then
579 $MAKE clean
580 fi
581 #
582 ${TOP_SRCDIR}/configure --quiet --enable-network=client --disable-srp --disable-external-scripts --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
583 #
[19]584 let "num = num + 1" >/dev/null
585 testmake $? $num || let "numfail = numfail + 1" >/dev/null
[22]586 let "num = num + 1" >/dev/null
587 run_smatch $? $num || let "numfail = numfail + 1" >/dev/null
[19]588
[22]589 [ -z "${SMATCH}" ] || { CC="${SAVE_CC}"; export CC; }
590
[19]591 log_end "COMPILE"
[1]592}
Note: See TracBrowser for help on using the repository browser.