1 #!/bin/sh 2 3 . "`dirname \"$0\"`/common_minimal.sh" 4 5 ACCEPT_SCRIPT="$THIS_DIR/test_handle.py" 6 ACCEPT_ARGS="accept $STORETYPE $STORE $JOURNAL $PREFS" 7 8 COUNTER_SCRIPT="$THIS_DIR/test_handle.py" 9 COUNTER_ARGS="counter $STORETYPE $STORE $JOURNAL $PREFS" 10 11 DECLINE_SCRIPT="$THIS_DIR/test_handle.py" 12 DECLINE_ARGS="decline $STORETYPE $STORE $JOURNAL $PREFS" 13 14 FREEBUSY_SCRIPT="$BASE_DIR/tools/make_freebusy.py" 15 FREEBUSY_ARGS="-s -n" 16 17 LIST_SCRIPT="$THIS_DIR/list_table.py" 18 LIST_ARGS="$STORETYPE $STORE $JOURNAL" 19 20 OUTGOING_SCRIPT="$BASE_DIR/imip_person_outgoing.py" 21 22 PERSON_SCRIPT="$BASE_DIR/imip_person.py" 23 24 SET_QUOTA_LIMIT="$BASE_DIR/tools/set_quota_limit.py" 25 SET_QUOTA_LIMIT_ARGS="-T $STORETYPE -j $JOURNAL" 26 27 TAB=`printf '\t'` 28 29 PYTHONPATH="$BASE_DIR" 30 export PYTHONPATH 31 32 if [ "$STORETYPE" = "file" ]; then 33 rm -rf "$STORE" 34 rm -rf "$JOURNAL" 35 elif [ "$STORETYPE" = "postgresql" ]; then 36 dropdb "$DBNAME" 37 createdb "$DBNAME" 38 psql -f "$BASE_DIR/conf/postgresql/schema.sql" "$DBNAME" 39 fi 40 41 rm -rf "$STATIC" 42 rm -rf "$PREFS" 43 rm -f "$ERROR" 44 rm -f out*.tmp