Changeset 163 for trunk/test
- Timestamp:
- Feb 6, 2008, 10:29:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_1b.sh
r159 r163 20 20 # 21 21 22 MAXTEST= 3; export MAXTEST22 MAXTEST=5; export MAXTEST 23 23 LOGFILE="$PW_DIR/.samhain_log"; export LOGFILE 24 24 RCFILE="$PW_DIR/testrc_1.dyn"; export RCFILE … … 229 229 log_skip 2 $MAXTEST 'public PGP key 0x0F571F6C not present' 230 230 log_skip 3 $MAXTEST 'public PGP key 0x0F571F6C not present' 231 log_skip 4 $MAXTEST 'public PGP key 0x0F571F6C not present' 232 log_skip 5 $MAXTEST 'public PGP key 0x0F571F6C not present' 231 233 else 232 234 # 233 235 # ------------- first test ------------- 236 # 237 BUILDOPTS="--quiet $TRUST --enable-debug --with-gpg=${GPG} --enable-micro-stealth=137 --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file" 238 testrun1b_internal "${BUILDOPTS}" 239 do_test_1b 240 if [ $? -eq 0 ]; then 241 log_ok 1 $MAXTEST 'gpg signed config/database files' 242 else 243 log_fail 1 $MAXTEST 'gpg signed config/database files' 244 fi 245 246 247 # 248 # ------------- second test ------------- 234 249 # 235 250 BUILDOPTS="--quiet $TRUST --enable-debug --with-gpg=${GPG} --with-checksum --enable-micro-stealth=137 --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file" … … 237 252 do_test_1b 238 253 if [ $? -eq 0 ]; then 239 log_ok 1 $MAXTEST 'gpg signed config/database files' 240 else 241 log_fail 1 $MAXTEST 'gpg signed config/database files' 242 fi 243 244 245 # 246 # ------------- second test ------------- 254 log_ok 2 $MAXTEST 'gpg signed config/database files' 255 else 256 log_fail 2 $MAXTEST 'gpg signed config/database files' 257 fi 258 259 260 # 261 # ------------- third test ------------- 262 # 263 BUILDOPTS="--quiet $TRUST --enable-debug --with-gpg=${GPG} --with-checksum --with-fp=EF6CEF54701A0AFDB86AF4C31AAD26C80F571F6C --enable-micro-stealth=137 --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file" 264 testrun1b_internal "${BUILDOPTS}" 265 do_test_1b 266 if [ $? -eq 0 ]; then 267 log_ok 3 $MAXTEST 'gpg signed config/database files' 268 else 269 log_fail 3 $MAXTEST 'gpg signed config/database files' 270 fi 271 272 273 # 274 # ------------- fourth test ------------- 247 275 # 248 276 PRECONV=`find_path convert` … … 257 285 do_test_1b 258 286 if [ $? -eq 0 ]; then 259 log_ok 2$MAXTEST 'gpg signed config/database files'287 log_ok 4 $MAXTEST 'gpg signed config/database files' 260 288 else 261 log_fail 2$MAXTEST 'gpg signed config/database files'289 log_fail 4 $MAXTEST 'gpg signed config/database files' 262 290 fi 263 291 fi … … 265 293 266 294 # 267 # ------------- thirdtest -------------295 # ------------- fifth test ------------- 268 296 # 269 297 if test -f /usr/local/lib/libprelude.so … … 275 303 PM=`find_path prelude-manager` 276 304 if [ -z "$PM" ]; then 277 log_skip 3$MAXTEST 'prelude-manager not found in $PATH'305 log_skip 5 $MAXTEST 'prelude-manager not found in $PATH' 278 306 elif [ -z "$doall" ]; then 279 log_skip 3$MAXTEST 'logging to prelude (or use --really-all)'307 log_skip 5 $MAXTEST 'logging to prelude (or use --really-all)' 280 308 else 281 309 BUILDOPTS="--quiet $TRUST --enable-debug --with-prelude --with-gpg=${GPG} --with-checksum --enable-micro-stealth=137 --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file" … … 283 311 do_test_1b_2 284 312 if [ $? -eq 0 ]; then 285 log_ok 3$MAXTEST 'logging to prelude'313 log_ok 5 $MAXTEST 'logging to prelude' 286 314 else 287 log_fail 3$MAXTEST 'logging to prelude'315 log_fail 5 $MAXTEST 'logging to prelude' 288 316 fi 289 317 fi
Note:
See TracChangeset
for help on using the changeset viewer.