Changeset 163


Ignore:
Timestamp:
Feb 6, 2008, 10:29:29 PM (17 years ago)
Author:
katerina
Message:

Add gpg fingerprint test to testsuite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testrun_1b.sh

    r159 r163  
    2020#
    2121
    22 MAXTEST=3; export MAXTEST
     22MAXTEST=5; export MAXTEST
    2323LOGFILE="$PW_DIR/.samhain_log"; export LOGFILE
    2424RCFILE="$PW_DIR/testrc_1.dyn";  export RCFILE
     
    229229            log_skip 2 $MAXTEST 'public PGP key 0x0F571F6C not present'
    230230            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'
    231233        else
    232234            #
    233235            # -------------  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 -------------
    234249            #
    235250            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"
     
    237252            do_test_1b
    238253            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 -------------
    247275            #
    248276            PRECONV=`find_path convert`
     
    257285                do_test_1b
    258286                if [ $? -eq 0 ]; then
    259                     log_ok   2 $MAXTEST 'gpg signed config/database files'
     287                    log_ok   4 $MAXTEST 'gpg signed config/database files'
    260288                else
    261                     log_fail 2 $MAXTEST 'gpg signed config/database files'
     289                    log_fail 4 $MAXTEST 'gpg signed config/database files'
    262290                fi
    263291            fi
     
    265293
    266294            #
    267             # -------------  third test -------------
     295            # -------------  fifth test -------------
    268296            #
    269297            if test -f /usr/local/lib/libprelude.so
     
    275303            PM=`find_path prelude-manager`
    276304            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'
    278306            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)'
    280308            else
    281309                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"
     
    283311                do_test_1b_2
    284312                if [ $? -eq 0 ]; then
    285                     log_ok   3 $MAXTEST 'logging to prelude'
     313                    log_ok   5 $MAXTEST 'logging to prelude'
    286314                else
    287                     log_fail 3 $MAXTEST 'logging to prelude'
     315                    log_fail 5 $MAXTEST 'logging to prelude'
    288316                fi
    289317            fi
Note: See TracChangeset for help on using the changeset viewer.