imip-agent

Annotated tests/common.sh

1045:5a9722130d25
2016-02-08 Paul Boddie Used event-related attributes stored in the handler directly.
paul@1024 1
#!/bin/sh
paul@1024 2
paul@1024 3
THIS_DIR=`dirname "$0"`
paul@1024 4
BASE_DIR="$THIS_DIR/.."
paul@1024 5
paul@1024 6
STORE=/tmp/store
paul@1024 7
STATIC=/tmp/static
paul@1024 8
PREFS=/tmp/prefs
paul@1039 9
JOURNAL=/tmp/journal
paul@1024 10
paul@1039 11
ARGS="-S $STORE -P $STATIC -p $PREFS -j $JOURNAL -d"
paul@1024 12
paul@1024 13
ACCEPT_SCRIPT="$THIS_DIR/test_handle.py"
paul@1024 14
ACCEPT_ARGS="accept $STORE $PREFS"
paul@1024 15
paul@1024 16
COUNTER_SCRIPT="$THIS_DIR/test_handle.py"
paul@1024 17
COUNTER_ARGS="counter $STORE $PREFS"
paul@1024 18
paul@1024 19
DECLINE_SCRIPT="$THIS_DIR/test_handle.py"
paul@1024 20
DECLINE_ARGS="decline $STORE $PREFS"
paul@1024 21
paul@1024 22
FREEBUSY_SCRIPT="$BASE_DIR/tools/make_freebusy.py"
paul@1024 23
FREEBUSY_ARGS="-s -n"
paul@1024 24
paul@1024 25
OUTGOING_SCRIPT="$BASE_DIR/imip_person_outgoing.py"
paul@1024 26
paul@1024 27
PERSON_SCRIPT="$BASE_DIR/imip_person.py"
paul@1024 28
paul@1024 29
RESOURCE_SCRIPT="$BASE_DIR/imip_resource.py"
paul@1024 30
paul@1024 31
SHOWMAIL="$BASE_DIR/tools/showmail.py"
paul@1024 32
paul@1024 33
TAB=`printf '\t'`
paul@1024 34
paul@1024 35
TEMPLATES="$THIS_DIR/templates"
paul@1024 36
paul@1024 37
ERROR=err.tmp
paul@1024 38
paul@1024 39
PYTHONPATH="$BASE_DIR"
paul@1024 40
export PYTHONPATH
paul@1024 41
paul@1039 42
rm -rf "$STORE"
paul@1039 43
rm -rf "$STATIC"
paul@1039 44
rm -rf "$PREFS"
paul@1039 45
rm -rf "$JOURNAL"
paul@1039 46
rm -f "$ERROR"
paul@1024 47
rm -f out*.tmp