1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/common.sh Fri Jan 29 16:44:32 2016 +0100
1.3 @@ -0,0 +1,45 @@
1.4 +#!/bin/sh
1.5 +
1.6 +THIS_DIR=`dirname "$0"`
1.7 +BASE_DIR="$THIS_DIR/.."
1.8 +
1.9 +STORE=/tmp/store
1.10 +STATIC=/tmp/static
1.11 +PREFS=/tmp/prefs
1.12 +
1.13 +ARGS="-S $STORE -P $STATIC -p $PREFS -d"
1.14 +
1.15 +ACCEPT_SCRIPT="$THIS_DIR/test_handle.py"
1.16 +ACCEPT_ARGS="accept $STORE $PREFS"
1.17 +
1.18 +COUNTER_SCRIPT="$THIS_DIR/test_handle.py"
1.19 +COUNTER_ARGS="counter $STORE $PREFS"
1.20 +
1.21 +DECLINE_SCRIPT="$THIS_DIR/test_handle.py"
1.22 +DECLINE_ARGS="decline $STORE $PREFS"
1.23 +
1.24 +FREEBUSY_SCRIPT="$BASE_DIR/tools/make_freebusy.py"
1.25 +FREEBUSY_ARGS="-s -n"
1.26 +
1.27 +OUTGOING_SCRIPT="$BASE_DIR/imip_person_outgoing.py"
1.28 +
1.29 +PERSON_SCRIPT="$BASE_DIR/imip_person.py"
1.30 +
1.31 +RESOURCE_SCRIPT="$BASE_DIR/imip_resource.py"
1.32 +
1.33 +SHOWMAIL="$BASE_DIR/tools/showmail.py"
1.34 +
1.35 +TAB=`printf '\t'`
1.36 +
1.37 +TEMPLATES="$THIS_DIR/templates"
1.38 +
1.39 +ERROR=err.tmp
1.40 +
1.41 +PYTHONPATH="$BASE_DIR"
1.42 +export PYTHONPATH
1.43 +
1.44 +rm -rf $STORE
1.45 +rm -rf $STATIC
1.46 +rm -rf $PREFS
1.47 +rm -f $ERROR
1.48 +rm -f out*.tmp