-
Notifications
You must be signed in to change notification settings - Fork 89
/
run_tests.sh
executable file
·78 lines (75 loc) · 1.57 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
PYTHON=python3
while [ $# -gt 0 ]; do
case "$1" in
--instanceUrl)
shift
export ARANGODB_URL=$1
shift
;;
--instanceEndpoint)
shift
shift
# don't care
;;
--auth)
shift
shift
# don't care
;;
--username)
shift
export ARANGODB_ROOT_USERNAME=$1
shift
;;
--password)
shift
export ARANGODB_ROOT_PASSWORD=$1
shift
;;
--enterprise)
shift
# don't care
;;
--no-enterprise)
shift
# don't care
;;
--host)
shift
shift
# don't care...
;;
--port)
shift
shift
# don't care...
;;
--deployment-mode)
shift
shift
# don't care...
;;
--testsuite)
shift
shift
# TODO: howto pass testsuite filters?
;;
--filter)
shift
shift
# TODO: howto pass testcase filters?
;;
--python-exe)
shift
export PYTHON=$1
shift
;;
*)
echo "What? my mother was a saint! $1"
shift
esac
done
$PYTHON setup.py build
export PYTHONPATH=$(pwd)/build/lib
exec $PYTHON pyArango/tests/tests.py 2>&1