imip-agent

tests/common_minimal.sh

1292:8a08870781bb
2017-10-06 Paul Boddie Remove SENT-BY from attributes where the sender matches the user. Simplify get_timestamp, making it use get_time.
     1 #!/bin/sh     2      3 THIS_DIR=`dirname "$0"`     4 BASE_DIR="$THIS_DIR/.."     5      6 STORE_TYPE=${STORE_TYPE:-file}     7      8 if [ "$STORE_TYPE" = "file" ]; then     9     STORE=/tmp/store    10     JOURNAL=/tmp/journal    11 elif [ "$STORE_TYPE" = "postgresql" ]; then    12     DBNAME='imip_agent_test'    13     STORE="dbname=$DBNAME"    14     JOURNAL="$STORE"    15 fi    16     17 STATIC=/tmp/static    18 PREFS=/tmp/prefs    19     20 ARGS="-T $STORE_TYPE -S $STORE -P $STATIC -p $PREFS -j $JOURNAL -d"    21     22 RESOURCE_SCRIPT="$BASE_DIR/imip_resource.py"    23     24 SHOWMAIL="$BASE_DIR/tools/showmail.py"    25     26 TEMPLATES="$THIS_DIR/templates"    27     28 ERROR=err.tmp    29     30 DBERROR=dberr.tmp