[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 |
|
---|
[474] | 22 | # dnmalloc + cppcheck + flawfinder + (38 * 2) - 8
|
---|
[473] | 23 | MAXTEST=79; export MAXTEST
|
---|
[1] | 24 |
|
---|
[171] | 25 | run_dnmalloc ()
|
---|
| 26 | {
|
---|
| 27 | fail=0
|
---|
| 28 | if test x$1 = x0; then
|
---|
| 29 | [ -z "$verbose" ] || log_msg_ok "configure...";
|
---|
| 30 | $MAKE clean > /dev/null 2>> test_log
|
---|
| 31 | $MAKE test_dnmalloc > /dev/null 2>> test_log
|
---|
| 32 | if test x$? = x0; then
|
---|
| 33 | [ -z "$verbose" ] || log_msg_ok "make test_dnmalloc...";
|
---|
| 34 | else
|
---|
| 35 | [ -z "$quiet" ] && log_msg_fail "make test_dnmalloc...";
|
---|
| 36 | fail=1
|
---|
| 37 | fi
|
---|
| 38 | else
|
---|
| 39 | [ -z "$quiet" ] && log_msg_fail "configure...";
|
---|
| 40 | if [ x"$3" = xskip ]; then
|
---|
| 41 | [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "test dnmalloc";
|
---|
| 42 | fi
|
---|
| 43 | fail=1
|
---|
| 44 | fi
|
---|
| 45 | if [ $fail -eq 1 ]; then
|
---|
| 46 | [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "test dnmalloc";
|
---|
| 47 | return 1
|
---|
| 48 | fi
|
---|
| 49 | #
|
---|
| 50 | fail=0
|
---|
| 51 | ./test_dnmalloc >/dev/null
|
---|
| 52 | if test x$? = x0; then
|
---|
| 53 | [ -z "$verbose" ] || log_msg_ok "run 1 completed...";
|
---|
| 54 | ./test_dnmalloc 300 12 3000 150000 400 >/dev/null
|
---|
| 55 | if test x$? = x0; then
|
---|
| 56 | [ -z "$verbose" ] || log_msg_ok "run 2 completed...";
|
---|
| 57 | ./test_dnmalloc 1 1 4000 10000000 1000 >/dev/null
|
---|
| 58 | if test x$? = x0; then
|
---|
| 59 | [ -z "$verbose" ] || log_msg_ok "run 3 completed...";
|
---|
| 60 | ./test_dnmalloc 1 1 4000 10000000 1000 >/dev/null
|
---|
| 61 | if test x$? = x0; then
|
---|
| 62 | [ -z "$verbose" ] || log_msg_ok "run 4 completed...";
|
---|
| 63 | else
|
---|
| 64 | fail=1
|
---|
| 65 | fi
|
---|
| 66 | else
|
---|
| 67 | fail=1
|
---|
| 68 | fi
|
---|
| 69 | else
|
---|
| 70 | fail=1
|
---|
| 71 | fi
|
---|
| 72 | else
|
---|
| 73 | fail=1
|
---|
| 74 | fi
|
---|
| 75 | #
|
---|
| 76 | if test x$fail = x0; then
|
---|
| 77 | [ -z "$quiet" ] && log_ok $2 ${MAXTEST} "test dnmalloc";
|
---|
| 78 | return 0
|
---|
| 79 | else
|
---|
| 80 | [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "test dnmalloc";
|
---|
| 81 | return 1
|
---|
| 82 | fi
|
---|
| 83 | }
|
---|
| 84 |
|
---|
[473] | 85 | run_cppcheck ()
|
---|
[171] | 86 | {
|
---|
| 87 | #
|
---|
[473] | 88 | CPC=`find_path cppcheck`
|
---|
[171] | 89 | #
|
---|
[473] | 90 | if [ -z "$CPC" ]; then
|
---|
| 91 | log_skip $num ${MAXTEST} 'check w/cppcheck (not in PATH)'
|
---|
[171] | 92 | return 0
|
---|
| 93 | fi
|
---|
| 94 | #
|
---|
| 95 | cd src/
|
---|
[509] | 96 | stat=`cppcheck --quiet --library=posix.cfg --inline-suppr --force -j 4 --template="{file},{line},{severity},{id},{message}" -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c 2>&1 | wc -l`
|
---|
[473] | 97 | if [ $stat -ne 0 ]; then
|
---|
[509] | 98 | cppcheck --quiet --library=posix.cfg --inline-suppr --force -j 4 --template="{file},{line},{severity},{id},{message}" -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c >>../test_log 2>&1
|
---|
[171] | 99 | retval=1
|
---|
[473] | 100 | [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "check w/cppcheck";
|
---|
[171] | 101 | else
|
---|
| 102 | retval=0
|
---|
[473] | 103 | [ -z "$quiet" ] && log_ok $2 ${MAXTEST} "check w/cppcheck";
|
---|
[171] | 104 | fi
|
---|
| 105 | cd ..
|
---|
| 106 | return $retval
|
---|
| 107 | }
|
---|
| 108 |
|
---|
[30] | 109 | run_flawfinder ()
|
---|
| 110 | {
|
---|
| 111 | flawfinder --minlevel=3 --quiet src/s*.c | \
|
---|
| 112 | egrep '^No hits found.' >/dev/null 2>&1
|
---|
| 113 | if [ $? -eq 0 ]; then
|
---|
| 114 | [ -z "$quiet" ] && log_ok $2 ${MAXTEST} "$TEST";
|
---|
| 115 | else
|
---|
| 116 | flawfinder --minlevel=3 --quiet src/s*.c >test_log 2>&1
|
---|
| 117 | [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST";
|
---|
| 118 | return 1
|
---|
| 119 | fi
|
---|
| 120 | }
|
---|
| 121 |
|
---|
[474] | 122 | run_clang ()
|
---|
[22] | 123 | {
|
---|
| 124 | export CDIR=`pwd`;
|
---|
| 125 |
|
---|
| 126 | if [ -z "$doall" ]; then
|
---|
[474] | 127 | [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (clang)";
|
---|
[22] | 128 | return 0
|
---|
| 129 | fi
|
---|
| 130 |
|
---|
[474] | 131 | CLANGPATH=`find_path clang`
|
---|
| 132 | if [ -n "$CLANGPATH" ]; then
|
---|
| 133 | CLANG_CC="$CLANGPATH"; export CLANG_CC
|
---|
| 134 | else
|
---|
| 135 | [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (clang)";
|
---|
[170] | 136 | return 0
|
---|
| 137 | fi
|
---|
| 138 |
|
---|
[474] | 139 | SAVE_TEST="$TEST"
|
---|
| 140 | TEST="$TEST (clang)"
|
---|
| 141 | testmake $1 $2
|
---|
| 142 | retval=$?
|
---|
| 143 | CLANG_CC=""; export CLANG_CC
|
---|
| 144 | TEST="$SAVE_TEST"
|
---|
| 145 | return $retval
|
---|
[22] | 146 | }
|
---|
| 147 |
|
---|
[1] | 148 | testmake ()
|
---|
| 149 | {
|
---|
[19] | 150 | fail=0
|
---|
[210] | 151 | #
|
---|
| 152 | # Compiler warnings can be OS specific, but at least
|
---|
| 153 | # on Linux there should be none
|
---|
| 154 | #
|
---|
| 155 | isLinux=0
|
---|
| 156 | uname -a | grep Linux >/dev/null
|
---|
| 157 | if [ $? -eq 0 ]; then
|
---|
| 158 | isLinux=1
|
---|
[481] | 159 | sed --in-place 's/-Wall/-Wall -Werror -Wpointer-arith -Wcast-qual/' Makefile
|
---|
[210] | 160 | fi
|
---|
| 161 | #
|
---|
[1] | 162 | if test x$1 = x0; then
|
---|
[19] | 163 | [ -z "$verbose" ] || log_msg_ok "configure... $TEST";
|
---|
[138] | 164 | $MAKE clean > /dev/null 2>> test_log
|
---|
[474] | 165 | if [ -z "$CLANG_CC" ]; then
|
---|
| 166 | $MAKE cutest > /dev/null 2>> test_log
|
---|
| 167 | else
|
---|
| 168 | sed --in-place 's/-Wno-empty-body/-Wno-empty-body -Wno-invalid-source-encoding/g' Makefile
|
---|
| 169 | sed --in-place 's/-fno-strength-reduce//g' Makefile
|
---|
| 170 | $MAKE -e CC=$CLANG_CC -e BUILD_CC=$CLANG_CC cutest > /dev/null 2>> test_log
|
---|
| 171 | fi
|
---|
[1] | 172 | if test x$? = x0; then
|
---|
[19] | 173 | [ -z "$verbose" ] || log_msg_ok "make cutest... $TEST";
|
---|
[1] | 174 | else
|
---|
[19] | 175 | [ -z "$quiet" ] && log_msg_fail "make cutest... $TEST";
|
---|
| 176 | fail=1
|
---|
[1] | 177 | fi
|
---|
| 178 | else
|
---|
[19] | 179 | [ -z "$quiet" ] && log_msg_fail "configure... $TEST";
|
---|
| 180 | if [ x"$3" = xskip ]; then
|
---|
| 181 | [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST";
|
---|
| 182 | fi
|
---|
| 183 | fail=1
|
---|
[1] | 184 | fi
|
---|
[210] | 185 | if [ $isLinux -eq 1 ]; then
|
---|
| 186 | sed --in-place 's/-Wall -Werror/-Wall/' Makefile
|
---|
| 187 | fi
|
---|
[19] | 188 | if [ $fail -eq 1 ]; then
|
---|
| 189 | [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST";
|
---|
| 190 | return 1
|
---|
| 191 | fi
|
---|
| 192 | [ -z "$quiet" ] && log_ok $2 ${MAXTEST} "$TEST";
|
---|
| 193 | return 0
|
---|
[1] | 194 | }
|
---|
| 195 |
|
---|
| 196 | testcompile ()
|
---|
| 197 | {
|
---|
[19] | 198 | log_start "COMPILE"
|
---|
[1] | 199 |
|
---|
[19] | 200 | num=0
|
---|
| 201 | numfail=0
|
---|
| 202 |
|
---|
[257] | 203 |
|
---|
| 204 | C_LOGFILE=""
|
---|
| 205 |
|
---|
| 206 | ls /lib/libpcre* >/dev/null 2>&1
|
---|
| 207 | if [ $? -eq 0 ]; then
|
---|
| 208 | C_LOGFILE=" --enable-logfile-monitor "
|
---|
| 209 | else
|
---|
| 210 | ls /usr/lib/libpcre* >/dev/null 2>&1
|
---|
| 211 | if [ $? -eq 0 ]; then
|
---|
| 212 | C_LOGFILE=" --enable-logfile-monitor "
|
---|
| 213 | else
|
---|
[378] | 214 | ls /usr/lib/*/libpcre* >/dev/null 2>&1
|
---|
[257] | 215 | if [ $? -eq 0 ]; then
|
---|
| 216 | C_LOGFILE=" --enable-logfile-monitor "
|
---|
[378] | 217 | else
|
---|
| 218 | ls /usr/local/lib/libpcre* >/dev/null 2>&1
|
---|
| 219 | if [ $? -eq 0 ]; then
|
---|
| 220 | C_LOGFILE=" --enable-logfile-monitor "
|
---|
| 221 | fi
|
---|
[257] | 222 | fi
|
---|
| 223 | fi
|
---|
| 224 | fi
|
---|
| 225 | if [ x"${C_LOGFILE}" = x ]; then
|
---|
| 226 | log_msg_ok "Not testing --enable-logfile-monitor";
|
---|
| 227 | fi
|
---|
| 228 |
|
---|
[1] | 229 | #
|
---|
[171] | 230 | # test dnmalloc
|
---|
| 231 | #
|
---|
| 232 | TEST="${S}check dnmalloc${E}"
|
---|
| 233 | #
|
---|
| 234 | ${TOP_SRCDIR}/configure --quiet > /dev/null 2>> test_log
|
---|
| 235 | #
|
---|
| 236 | let "num = num + 1" >/dev/null
|
---|
| 237 | #
|
---|
| 238 | run_dnmalloc 0 $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 239 | #
|
---|
| 240 |
|
---|
| 241 | #
|
---|
[473] | 242 | # test dnmalloc
|
---|
| 243 | #
|
---|
| 244 | TEST="${S}check w/cppcheck${E}"
|
---|
| 245 | #
|
---|
| 246 | let "num = num + 1" >/dev/null
|
---|
| 247 | #
|
---|
| 248 | run_cppcheck 0 $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 249 | #
|
---|
| 250 |
|
---|
| 251 | #
|
---|
[30] | 252 | # test flawfinder
|
---|
| 253 | #
|
---|
| 254 | TEST="${S}check w/flawfinder${E}"
|
---|
| 255 | #
|
---|
| 256 | #
|
---|
| 257 | let "num = num + 1" >/dev/null
|
---|
| 258 | FLAWFINDER=`find_path flawfinder`
|
---|
| 259 | #
|
---|
| 260 | if [ -z "$FLAWFINDER" ]; then
|
---|
| 261 | log_skip $num $MAXTEST 'check w/flawfinder (not in PATH)'
|
---|
| 262 | else
|
---|
| 263 | run_flawfinder 0 $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 264 | fi
|
---|
| 265 | #
|
---|
| 266 |
|
---|
| 267 | #
|
---|
[1] | 268 | # test standalone compilation
|
---|
| 269 | #
|
---|
[75] | 270 | TEST="${S}standalone w/suidcheck w/procchk${E}"
|
---|
[1] | 271 | #
|
---|
| 272 | if test -r "Makefile"; then
|
---|
| 273 | $MAKE distclean
|
---|
| 274 | fi
|
---|
| 275 | #
|
---|
[68] | 276 | ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-suidcheck --enable-process-check > /dev/null 2>> test_log
|
---|
[1] | 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
|
---|
[474] | 281 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 282 |
|
---|
| 283 | #
|
---|
| 284 | # test standalone compilation
|
---|
| 285 | #
|
---|
[145] | 286 | TEST="${S}standalone static w/suidcheck w/procchk${E}"
|
---|
| 287 | #
|
---|
| 288 | if test -r "Makefile"; then
|
---|
| 289 | $MAKE distclean
|
---|
| 290 | fi
|
---|
| 291 | #
|
---|
[257] | 292 | ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-static --enable-suidcheck --enable-process-check ${C_LOGFILE} > /dev/null 2>> test_log
|
---|
[145] | 293 | #
|
---|
| 294 | let "num = num + 1" >/dev/null
|
---|
| 295 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 296 | let "num = num + 1" >/dev/null
|
---|
[474] | 297 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[145] | 298 | #
|
---|
| 299 | # test standalone compilation
|
---|
| 300 | #
|
---|
[75] | 301 | TEST="${S}standalone w/procchk w/portchk${E}"
|
---|
[68] | 302 | #
|
---|
| 303 | if test -r "Makefile"; then
|
---|
| 304 | $MAKE distclean
|
---|
| 305 | fi
|
---|
| 306 | #
|
---|
| 307 | ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-process-check --enable-port-check > /dev/null 2>> test_log
|
---|
| 308 | #
|
---|
| 309 | let "num = num + 1" >/dev/null
|
---|
| 310 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 311 | let "num = num + 1" >/dev/null
|
---|
[474] | 312 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[68] | 313 |
|
---|
| 314 | #
|
---|
| 315 | # test standalone compilation
|
---|
| 316 | #
|
---|
[210] | 317 | TEST="${S}standalone w/procchk w/portchk w/static${E}"
|
---|
| 318 | #
|
---|
| 319 | if test -r "Makefile"; then
|
---|
| 320 | $MAKE distclean
|
---|
| 321 | fi
|
---|
| 322 | #
|
---|
| 323 | ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-process-check --enable-port-check --enable-static > /dev/null 2>> test_log
|
---|
| 324 | #
|
---|
| 325 | let "num = num + 1" >/dev/null
|
---|
| 326 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 327 | let "num = num + 1" >/dev/null
|
---|
[474] | 328 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[210] | 329 | #
|
---|
| 330 | # test standalone compilation
|
---|
| 331 | #
|
---|
[75] | 332 | TEST="${S}standalone w/procchk w/portchk w/stealth${E}"
|
---|
| 333 | #
|
---|
| 334 | if test -r "Makefile"; then
|
---|
| 335 | $MAKE distclean
|
---|
| 336 | fi
|
---|
| 337 | #
|
---|
| 338 | ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --enable-stealth=164 --enable-process-check --enable-port-check > /dev/null 2>> test_log
|
---|
| 339 | #
|
---|
| 340 | let "num = num + 1" >/dev/null
|
---|
| 341 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 342 | let "num = num + 1" >/dev/null
|
---|
[474] | 343 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[75] | 344 |
|
---|
| 345 | #
|
---|
| 346 | # test standalone compilation
|
---|
| 347 | #
|
---|
[22] | 348 | TEST="${S}standalone w/mounts-check w/userfiles${E}"
|
---|
[1] | 349 | #
|
---|
| 350 | if test -r "Makefile"; then
|
---|
| 351 | $MAKE distclean
|
---|
| 352 | fi
|
---|
| 353 | #
|
---|
| 354 | ${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
|
---|
| 355 | #
|
---|
[19] | 356 | let "num = num + 1" >/dev/null
|
---|
| 357 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 358 | let "num = num + 1" >/dev/null
|
---|
[474] | 359 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 360 |
|
---|
| 361 |
|
---|
| 362 | #
|
---|
| 363 | # test standalone compilation
|
---|
| 364 | #
|
---|
[22] | 365 | TEST="${S}standalone w/timeserver and w/msgqueue${E}"
|
---|
[1] | 366 | #
|
---|
| 367 | if test -r "Makefile"; then
|
---|
| 368 | $MAKE clean
|
---|
| 369 | fi
|
---|
| 370 | #
|
---|
| 371 | ${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
|
---|
| 372 | #
|
---|
[19] | 373 | let "num = num + 1" >/dev/null
|
---|
| 374 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 375 | let "num = num + 1" >/dev/null
|
---|
[474] | 376 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 377 |
|
---|
| 378 | #
|
---|
| 379 | # test standalone compilation with --with-nocl=PW
|
---|
| 380 | #
|
---|
[183] | 381 | TEST="${S}standalone w/nocl w/logmon${E}"
|
---|
[1] | 382 | #
|
---|
| 383 | if test -r "Makefile"; then
|
---|
| 384 | $MAKE clean
|
---|
| 385 | fi
|
---|
| 386 | #
|
---|
[257] | 387 | ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --enable-nocl="owl" --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test ${C_LOGFILE} > /dev/null 2>> test_log
|
---|
[1] | 388 | #
|
---|
[19] | 389 | let "num = num + 1" >/dev/null
|
---|
| 390 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 391 | let "num = num + 1" >/dev/null
|
---|
[474] | 392 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 393 |
|
---|
| 394 | #
|
---|
| 395 | # test standalone compilation w/ debug
|
---|
| 396 | #
|
---|
[22] | 397 | TEST="${S}standalone w/debug${E}"
|
---|
[1] | 398 | #
|
---|
| 399 | if test -r "Makefile"; then
|
---|
| 400 | $MAKE clean
|
---|
| 401 | fi
|
---|
| 402 | #
|
---|
| 403 | ${TOP_SRCDIR}/configure --quiet --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
|
---|
| 404 | #
|
---|
[19] | 405 | let "num = num + 1" >/dev/null
|
---|
| 406 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 407 | let "num = num + 1" >/dev/null
|
---|
[474] | 408 | run_clang $? $num debug || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 409 |
|
---|
| 410 | #
|
---|
| 411 | # test standalone compilation w/ gpg
|
---|
| 412 | #
|
---|
[22] | 413 | TEST="${S}standalone w/gpg${E}"
|
---|
[1] | 414 | #
|
---|
[19] | 415 | GPG=`find_path gpg`
|
---|
| 416 | let "num = num + 1" >/dev/null
|
---|
| 417 | #
|
---|
| 418 | if [ -z "$GPG" ]; then
|
---|
| 419 | log_skip $num $MAXTEST 'gpg not in PATH'
|
---|
[29] | 420 | let "num = num + 1" >/dev/null
|
---|
[54] | 421 | log_skip $num $MAXTEST 'gpg not in PATH'
|
---|
[19] | 422 | else
|
---|
| 423 | if test -r "Makefile"; then
|
---|
[1] | 424 | $MAKE clean
|
---|
[19] | 425 | fi
|
---|
| 426 | #
|
---|
| 427 | ${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
|
---|
| 428 | #
|
---|
| 429 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 430 | let "num = num + 1" >/dev/null
|
---|
[474] | 431 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 432 | fi
|
---|
| 433 |
|
---|
| 434 | #
|
---|
| 435 | # test standalone compilation w/stealth
|
---|
| 436 | #
|
---|
[22] | 437 | TEST="${S}standalone w/stealth${E}"
|
---|
[1] | 438 | #
|
---|
| 439 | if test -r "Makefile"; then
|
---|
| 440 | $MAKE clean
|
---|
| 441 | fi
|
---|
| 442 | #
|
---|
| 443 | ${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
|
---|
| 444 | #
|
---|
[19] | 445 | let "num = num + 1" >/dev/null
|
---|
| 446 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 447 | let "num = num + 1" >/dev/null
|
---|
[474] | 448 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 449 |
|
---|
| 450 | #
|
---|
[183] | 451 | # test standalone compilation w/loginwatch
|
---|
[1] | 452 | #
|
---|
[22] | 453 | TEST="${S}standalone w/login-watch${E}"
|
---|
[1] | 454 | #
|
---|
| 455 | if test -r "Makefile"; then
|
---|
| 456 | $MAKE clean
|
---|
| 457 | fi
|
---|
| 458 | #
|
---|
| 459 | ${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
|
---|
| 460 | #
|
---|
[19] | 461 | let "num = num + 1" >/dev/null
|
---|
| 462 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 463 | let "num = num + 1" >/dev/null
|
---|
[474] | 464 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 465 |
|
---|
| 466 | #
|
---|
[19] | 467 | # test standalone compilation w/mysql
|
---|
| 468 | #
|
---|
[22] | 469 | TEST="${S}standalone w/mysql${E}"
|
---|
[19] | 470 | #
|
---|
| 471 | if test -r "Makefile"; then
|
---|
| 472 | $MAKE clean
|
---|
| 473 | fi
|
---|
| 474 | #
|
---|
| 475 | ${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
|
---|
| 476 | #
|
---|
| 477 | let "num = num + 1" >/dev/null
|
---|
| 478 | testmake $? $num "skip" || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 479 | let "num = num + 1" >/dev/null
|
---|
[474] | 480 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[19] | 481 |
|
---|
| 482 | #
|
---|
[54] | 483 | # test standalone compilation w/mysql and stealth
|
---|
| 484 | #
|
---|
| 485 | TEST="${S}standalone w/mysql+stealth${E}"
|
---|
| 486 | #
|
---|
| 487 | if test -r "Makefile"; then
|
---|
| 488 | $MAKE clean
|
---|
| 489 | fi
|
---|
| 490 | #
|
---|
| 491 | ${TOP_SRCDIR}/configure --quiet --enable-xml-log --enable-stealth=128 --with-database=mysql --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
|
---|
| 492 | #
|
---|
| 493 | let "num = num + 1" >/dev/null
|
---|
| 494 | testmake $? $num "skip" || let "numfail = numfail + 1" >/dev/null
|
---|
| 495 | let "num = num + 1" >/dev/null
|
---|
[474] | 496 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[54] | 497 |
|
---|
| 498 | #
|
---|
[19] | 499 | # test standalone compilation w/postgresql
|
---|
| 500 | #
|
---|
[22] | 501 | TEST="${S}standalone w/postgresql${E}"
|
---|
[19] | 502 | #
|
---|
| 503 | if test -r "Makefile"; then
|
---|
| 504 | $MAKE clean
|
---|
| 505 | fi
|
---|
| 506 | #
|
---|
| 507 | ${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
|
---|
| 508 | #
|
---|
| 509 | let "num = num + 1" >/dev/null
|
---|
| 510 | testmake $? $num "skip" || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 511 | let "num = num + 1" >/dev/null
|
---|
[474] | 512 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[19] | 513 |
|
---|
| 514 | #
|
---|
[54] | 515 | # test standalone compilation w/postgresql+stealth
|
---|
| 516 | #
|
---|
| 517 | TEST="${S}standalone w/postgresql+stealth${E}"
|
---|
| 518 | #
|
---|
| 519 | if test -r "Makefile"; then
|
---|
| 520 | $MAKE clean
|
---|
| 521 | fi
|
---|
| 522 | #
|
---|
| 523 | ${TOP_SRCDIR}/configure --quiet --enable-xml-log --enable-stealth=128 --with-database=postgresql --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
|
---|
| 524 | #
|
---|
| 525 | let "num = num + 1" >/dev/null
|
---|
| 526 | testmake $? $num "skip" || let "numfail = numfail + 1" >/dev/null
|
---|
| 527 | let "num = num + 1" >/dev/null
|
---|
[474] | 528 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[54] | 529 |
|
---|
| 530 | #
|
---|
[1] | 531 | # test standalone compilation
|
---|
| 532 | #
|
---|
[147] | 533 | TEST="${S}standalone w/o mail w/unix_rnd${E}"
|
---|
[1] | 534 | #
|
---|
| 535 | if test -r "Makefile"; then
|
---|
| 536 | $MAKE clean
|
---|
| 537 | fi
|
---|
| 538 | #
|
---|
[147] | 539 | ${TOP_SRCDIR}/configure --quiet --disable-mail --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --with-rnd=unix > /dev/null 2>> test_log
|
---|
[1] | 540 | #
|
---|
[19] | 541 | let "num = num + 1" >/dev/null
|
---|
| 542 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 543 | let "num = num + 1" >/dev/null
|
---|
[474] | 544 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 545 |
|
---|
| 546 | #
|
---|
| 547 | # test standalone compilation
|
---|
| 548 | #
|
---|
[22] | 549 | TEST="${S}standalone w/o external${E}"
|
---|
[1] | 550 | #
|
---|
| 551 | if test -r "Makefile"; then
|
---|
| 552 | $MAKE clean
|
---|
| 553 | fi
|
---|
| 554 | #
|
---|
| 555 | ${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
|
---|
| 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
|
---|
[474] | 560 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 561 |
|
---|
| 562 | # echo; echo "${S}__ TEST CLIENT/SERVER __${E}"; echo;
|
---|
| 563 |
|
---|
| 564 | #
|
---|
| 565 | # test client/server compilation
|
---|
| 566 | #
|
---|
| 567 | TEST="${S}client/server application w/timeserver${E}"
|
---|
| 568 | #
|
---|
| 569 | if test -r "Makefile"; then
|
---|
| 570 | $MAKE clean
|
---|
| 571 | fi
|
---|
| 572 | #
|
---|
| 573 | ${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
|
---|
| 574 | #
|
---|
[19] | 575 | let "num = num + 1" >/dev/null
|
---|
| 576 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 577 | let "num = num + 1" >/dev/null
|
---|
[474] | 578 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[19] | 579 |
|
---|
[1] | 580 | if test -r "Makefile"; then
|
---|
| 581 | $MAKE clean
|
---|
| 582 | fi
|
---|
| 583 | #
|
---|
| 584 | ${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
|
---|
| 585 | #
|
---|
[19] | 586 | let "num = num + 1" >/dev/null
|
---|
| 587 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 588 | let "num = num + 1" >/dev/null
|
---|
[474] | 589 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 590 |
|
---|
| 591 | #
|
---|
[342] | 592 | # test client/server compilation w/prelude
|
---|
| 593 | #
|
---|
| 594 | TEST="${S}client/server application w/prelude${E}"
|
---|
| 595 | #
|
---|
| 596 | if [ -z "$doall" ]; then
|
---|
| 597 | let "num = num + 1" >/dev/null
|
---|
[344] | 598 | [ -z "$quiet" ] && log_skip $num ${MAXTEST} "$TEST";
|
---|
[342] | 599 | let "num = num + 1" >/dev/null
|
---|
[344] | 600 | [ -z "$quiet" ] && log_skip $num ${MAXTEST} "$TEST (smatch)";
|
---|
[342] | 601 |
|
---|
| 602 | let "num = num + 1" >/dev/null
|
---|
[344] | 603 | [ -z "$quiet" ] && log_skip $num ${MAXTEST} "$TEST";
|
---|
[342] | 604 | let "num = num + 1" >/dev/null
|
---|
[344] | 605 | [ -z "$quiet" ] && log_skip $num ${MAXTEST} "$TEST (smatch)";
|
---|
[342] | 606 | else
|
---|
| 607 | if test -r "Makefile"; then
|
---|
| 608 | $MAKE clean
|
---|
| 609 | fi
|
---|
| 610 | #
|
---|
| 611 | ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --with-prelude > /dev/null 2>> test_log
|
---|
| 612 | #
|
---|
| 613 | let "num = num + 1" >/dev/null
|
---|
| 614 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 615 | let "num = num + 1" >/dev/null
|
---|
[474] | 616 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[342] | 617 |
|
---|
| 618 | if test -r "Makefile"; then
|
---|
| 619 | $MAKE clean
|
---|
| 620 | fi
|
---|
| 621 | #
|
---|
| 622 | ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --with-prelude > /dev/null 2>> test_log
|
---|
| 623 | #
|
---|
| 624 | let "num = num + 1" >/dev/null
|
---|
| 625 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 626 | let "num = num + 1" >/dev/null
|
---|
[474] | 627 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[342] | 628 | #
|
---|
| 629 | fi
|
---|
| 630 |
|
---|
| 631 | #
|
---|
[145] | 632 | # test client/server compilation
|
---|
| 633 | #
|
---|
| 634 | TEST="${S}client/server application static w/timeserver${E}"
|
---|
| 635 | #
|
---|
| 636 | if test -r "Makefile"; then
|
---|
| 637 | $MAKE clean
|
---|
| 638 | fi
|
---|
| 639 | #
|
---|
[257] | 640 | ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-static --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --with-timeserver=127.0.0.1 ${C_LOGFILE} > /dev/null 2>> test_log
|
---|
[145] | 641 | #
|
---|
| 642 | let "num = num + 1" >/dev/null
|
---|
| 643 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 644 | let "num = num + 1" >/dev/null
|
---|
[474] | 645 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[145] | 646 |
|
---|
| 647 | if test -r "Makefile"; then
|
---|
| 648 | $MAKE clean
|
---|
| 649 | fi
|
---|
| 650 | #
|
---|
| 651 | ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-static --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
|
---|
| 652 | #
|
---|
| 653 | let "num = num + 1" >/dev/null
|
---|
| 654 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
| 655 | let "num = num + 1" >/dev/null
|
---|
[474] | 656 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[145] | 657 | #
|
---|
[1] | 658 | # test c/s compilation w/ gpg
|
---|
| 659 | #
|
---|
| 660 | TEST="${S}client/server application w/gpg${E}"
|
---|
| 661 | #
|
---|
[19] | 662 | GPG=`find_path gpg`
|
---|
| 663 | let "num = num + 1" >/dev/null
|
---|
[1] | 664 | #
|
---|
[19] | 665 | if [ -z "$GPG" ]; then
|
---|
| 666 | log_skip $num $MAXTEST 'gpg not in PATH'
|
---|
[54] | 667 | let "num = num + 1" >/dev/null
|
---|
| 668 | log_skip $num $MAXTEST 'gpg not in PATH'
|
---|
| 669 | let "num = num + 1" >/dev/null
|
---|
| 670 | log_skip $num $MAXTEST 'gpg not in PATH'
|
---|
| 671 | let "num = num + 1" >/dev/null
|
---|
| 672 | log_skip $num $MAXTEST 'gpg not in PATH'
|
---|
[19] | 673 | else
|
---|
| 674 | if test -r "Makefile"; then
|
---|
[1] | 675 | $MAKE clean
|
---|
[19] | 676 | fi
|
---|
| 677 | #
|
---|
| 678 | ${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
|
---|
| 679 | #
|
---|
| 680 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 681 | let "num = num + 1" >/dev/null
|
---|
[474] | 682 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[19] | 683 | #
|
---|
| 684 | if test -r "Makefile"; then
|
---|
| 685 | $MAKE clean
|
---|
| 686 | fi
|
---|
| 687 | #
|
---|
[257] | 688 | ${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 ${C_LOGFILE} > /dev/null 2>> test_log
|
---|
[19] | 689 | #
|
---|
| 690 | let "num = num + 1" >/dev/null
|
---|
| 691 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 692 | let "num = num + 1" >/dev/null
|
---|
[474] | 693 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 694 | fi
|
---|
| 695 |
|
---|
| 696 |
|
---|
| 697 | #
|
---|
| 698 | # test client/server compilation
|
---|
| 699 | #
|
---|
[341] | 700 | TEST="${S}client/server application w/o srp, w/udp${E}"
|
---|
[1] | 701 | #
|
---|
| 702 | if test -r "Makefile"; then
|
---|
| 703 | $MAKE clean
|
---|
| 704 | fi
|
---|
| 705 | #
|
---|
[341] | 706 | ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-udp --disable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
|
---|
[1] | 707 | #
|
---|
[19] | 708 | let "num = num + 1" >/dev/null
|
---|
| 709 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 710 | let "num = num + 1" >/dev/null
|
---|
[474] | 711 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 712 | #
|
---|
| 713 | if test -r "Makefile"; then
|
---|
| 714 | $MAKE clean
|
---|
| 715 | fi
|
---|
| 716 | #
|
---|
| 717 | ${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
|
---|
| 718 | #
|
---|
[19] | 719 | let "num = num + 1" >/dev/null
|
---|
| 720 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 721 | let "num = num + 1" >/dev/null
|
---|
[474] | 722 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 723 |
|
---|
| 724 | #
|
---|
| 725 | # test client/server compilation w/ debug
|
---|
| 726 | #
|
---|
| 727 | TEST="${S}client/server application w/debug${E}"
|
---|
| 728 | #
|
---|
| 729 | if test -r "Makefile"; then
|
---|
| 730 | $MAKE clean
|
---|
| 731 | fi
|
---|
| 732 | #
|
---|
| 733 | ${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
|
---|
| 734 | #
|
---|
[19] | 735 | let "num = num + 1" >/dev/null
|
---|
| 736 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 737 | let "num = num + 1" >/dev/null
|
---|
[474] | 738 | run_clang $? $num debug || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 739 | #
|
---|
| 740 | if test -r "Makefile"; then
|
---|
| 741 | $MAKE clean
|
---|
| 742 | fi
|
---|
| 743 | #
|
---|
[257] | 744 | ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test ${C_LOGFILE} > /dev/null 2>> test_log
|
---|
[1] | 745 | #
|
---|
[19] | 746 | let "num = num + 1" >/dev/null
|
---|
| 747 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 748 | let "num = num + 1" >/dev/null
|
---|
[474] | 749 | run_clang $? $num debug || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 750 |
|
---|
| 751 | #
|
---|
| 752 | # test client/server compilation w/stealth
|
---|
| 753 | #
|
---|
| 754 | TEST="${S}client/server application w/stealth${E}"
|
---|
| 755 | #
|
---|
| 756 | if test -r "Makefile"; then
|
---|
| 757 | $MAKE clean
|
---|
| 758 | fi
|
---|
| 759 | #
|
---|
| 760 | ${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
|
---|
| 761 | #
|
---|
[19] | 762 | let "num = num + 1" >/dev/null
|
---|
| 763 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 764 | let "num = num + 1" >/dev/null
|
---|
[474] | 765 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 766 | #
|
---|
| 767 | if test -r "Makefile"; then
|
---|
| 768 | $MAKE clean
|
---|
| 769 | fi
|
---|
| 770 | #
|
---|
| 771 | ${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
|
---|
| 772 | #
|
---|
[19] | 773 | let "num = num + 1" >/dev/null
|
---|
| 774 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 775 | let "num = num + 1" >/dev/null
|
---|
[474] | 776 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 777 |
|
---|
| 778 | #
|
---|
| 779 | # test client/server compilation w/logwatch
|
---|
| 780 | #
|
---|
[341] | 781 | TEST="${S}client/server application w/login-watch,udp,no_ipv6${E}"
|
---|
[1] | 782 | #
|
---|
| 783 | if test -r "Makefile"; then
|
---|
| 784 | $MAKE clean
|
---|
| 785 | fi
|
---|
| 786 | #
|
---|
[341] | 787 | ${TOP_SRCDIR}/configure --quiet --enable-network=server --enable-udp --disable-ipv6 --enable-srp --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
|
---|
[1] | 788 | #
|
---|
[19] | 789 | let "num = num + 1" >/dev/null
|
---|
| 790 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 791 | let "num = num + 1" >/dev/null
|
---|
[474] | 792 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 793 | #
|
---|
| 794 | if test -r "Makefile"; then
|
---|
| 795 | $MAKE clean
|
---|
| 796 | fi
|
---|
| 797 | #
|
---|
[341] | 798 | ${TOP_SRCDIR}/configure --quiet --enable-network=client --disable-ipv6 --enable-srp --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log
|
---|
[1] | 799 | #
|
---|
[19] | 800 | let "num = num + 1" >/dev/null
|
---|
| 801 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 802 | let "num = num + 1" >/dev/null
|
---|
[474] | 803 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 804 |
|
---|
| 805 | #
|
---|
| 806 | # test client/server compilation
|
---|
| 807 | #
|
---|
| 808 | TEST="${S}client/server application w/o mail${E}"
|
---|
| 809 | #
|
---|
| 810 | if test -r "Makefile"; then
|
---|
| 811 | $MAKE clean
|
---|
| 812 | fi
|
---|
| 813 | #
|
---|
| 814 | ${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
|
---|
| 815 | #
|
---|
[19] | 816 | let "num = num + 1" >/dev/null
|
---|
| 817 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 818 | let "num = num + 1" >/dev/null
|
---|
[474] | 819 | run_clang $? $num debug || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 820 | #
|
---|
| 821 | if test -r "Makefile"; then
|
---|
| 822 | $MAKE clean
|
---|
| 823 | fi
|
---|
| 824 | #
|
---|
| 825 | ${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
|
---|
| 826 | #
|
---|
[19] | 827 | let "num = num + 1" >/dev/null
|
---|
| 828 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 829 | let "num = num + 1" >/dev/null
|
---|
[474] | 830 | run_clang $? $num debug || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 831 |
|
---|
| 832 | #
|
---|
| 833 | # test client/server compilation
|
---|
| 834 | #
|
---|
[22] | 835 | TEST="${S}client/server application w/o external${E}"
|
---|
[1] | 836 | #
|
---|
| 837 | if test -r "Makefile"; then
|
---|
| 838 | $MAKE clean
|
---|
| 839 | fi
|
---|
| 840 | #
|
---|
| 841 | ${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
|
---|
| 842 | #
|
---|
[19] | 843 | let "num = num + 1" >/dev/null
|
---|
| 844 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 845 | let "num = num + 1" >/dev/null
|
---|
[474] | 846 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[1] | 847 | #
|
---|
| 848 | if test -r "Makefile"; then
|
---|
| 849 | $MAKE clean
|
---|
| 850 | fi
|
---|
| 851 | #
|
---|
| 852 | ${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
|
---|
| 853 | #
|
---|
[19] | 854 | let "num = num + 1" >/dev/null
|
---|
| 855 | testmake $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[22] | 856 | let "num = num + 1" >/dev/null
|
---|
[474] | 857 | run_clang $? $num || let "numfail = numfail + 1" >/dev/null
|
---|
[19] | 858 |
|
---|
| 859 | log_end "COMPILE"
|
---|
[1] | 860 | }
|
---|