imip-agent

tests/common_minimal.sh

1272:65e999dd88f0
2017-09-18 Paul Boddie Added a convenience method for loading objects. Added docstrings. client-editing-simplification
     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