Changeset 170 for trunk/test/testrun_2d.sh
- Timestamp:
- Apr 30, 2008, 11:56:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_2d.sh
r51 r170 24 24 CLIENT_BUILDOPTS="--quiet $TRUST --prefix=$PW_DIR --with-tmp-dir=$PW_DIR --localstatedir=$PW_DIR --enable-network=client --disable-mail --disable-external-scripts --enable-login-watch --enable-xml-log --enable-db-reload --with-logserver=localhost --with-config-file=REQ_FROM_SERVER$PW_DIR/testrc_2 --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock"; export CLIENT_BUILDOPTS 25 25 26 create_pgpass () { 27 touch ~/.pgpass 28 chmod 600 ~/.pgpass 29 cat > ~/.pgpass << EOF 30 localhost:*:samhain:samhain:samhain 31 EOF 32 } 33 26 34 check_psql_log () { 27 35 DATE="$1" 28 36 29 37 rm -f test_log_db 30 PGPASSWORD=samhain; export PGPASSWORD 38 # PGPASSWORD=samhain; export PGPASSWORD 39 create_pgpass 31 40 psql -U samhain -d samhain -c "SELECT * FROM log WHERE entry_status = 'NEW' and log_time > '${DATE}';" >test_log_db 32 41 # … … 77 86 return 1 78 87 else 79 PGPASSWORD="samhain"; export PGPASSWORD 88 # PGPASSWORD="samhain"; export PGPASSWORD 89 create_pgpass 80 90 TEST=`psql -U samhain -d samhain -c "SELECT * FROM log LIMIT 1;" 2>/dev/null` 81 91 if [ $? -ne 0 -o -z "$TEST" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.