imip-agent

tests/common.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 . "`dirname \"$0\"`/common_minimal.sh"     4      5 ACCEPT_SCRIPT="$THIS_DIR/test_handle.py"     6 ACCEPT_ARGS="accept $STORE_TYPE $STORE $JOURNAL $PREFS"     7      8 COUNTER_SCRIPT="$THIS_DIR/test_handle.py"     9 COUNTER_ARGS="counter $STORE_TYPE $STORE $JOURNAL $PREFS"    10     11 DECLINE_SCRIPT="$THIS_DIR/test_handle.py"    12 DECLINE_ARGS="decline $STORE_TYPE $STORE $JOURNAL $PREFS"    13     14 FREEBUSY_SCRIPT="$BASE_DIR/tools/make_freebusy.py"    15 FREEBUSY_ARGS="-s -n"    16 FREEBUSY_QUOTA_ARGS="-s -q"    17     18 LIST_SCRIPT="$THIS_DIR/list_table.py"    19 LIST_ARGS="$STORE_TYPE $STORE $JOURNAL"    20     21 OUTGOING_SCRIPT="$BASE_DIR/imip_person_outgoing.py"    22     23 PERSON_SCRIPT="$BASE_DIR/imip_person.py"    24     25 SET_DELEGATES="$BASE_DIR/tools/set_delegates.py"    26 SET_DELEGATES_ARGS="-T $STORE_TYPE -j $JOURNAL"     27     28 SET_QUOTA_GROUPS="$BASE_DIR/tools/set_quota_groups.py"    29 SET_QUOTA_GROUPS_ARGS="-T $STORE_TYPE -j $JOURNAL"     30     31 SET_QUOTA_LIMITS="$BASE_DIR/tools/set_quota_limits.py"    32 SET_QUOTA_LIMITS_ARGS="-T $STORE_TYPE -j $JOURNAL"     33     34 TAB=`printf '\t'`    35     36 PYTHONPATH="$BASE_DIR"    37 export PYTHONPATH    38     39 if [ "$STORE_TYPE" = "file" ]; then    40     rm -rf "$STORE"    41     rm -rf "$JOURNAL"    42 elif [ "$STORE_TYPE" = "postgresql" ]; then    43     dropdb "$DBNAME"    44     createdb "$DBNAME"    45     psql -q -f "$BASE_DIR/conf/postgresql/schema.sql" "$DBNAME" 2>> $DBERROR    46 fi    47     48 rm -rf "$STATIC"    49 rm -rf "$PREFS"    50 rm -f "$ERROR"    51 rm -f out*.tmp