forked from WebexCommunity/WebexPythonSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest
More file actions
executable file
·58 lines (45 loc) · 925 Bytes
/
Copy pathtest
File metadata and controls
executable file
·58 lines (45 loc) · 925 Bytes
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
#!/usr/bin/env bash
# Run the project's test suite(s).
#
# Copyright (c) 2016-2020 Cisco and/or its affiliates.
# License: MIT
# Run all tests by default
default=true
# Process Script Arguments
for i in ${@}; do
case ${i} in
lint)
lint=true
default=
;;
tests)
tests=true
default=
;;
slow)
slow=true
default=
;;
*)
echo "Unknown argument: $i"
exit 1
;;
esac
done
set -e
cd "$(dirname "$0")/.."
# Lint the source code
if [ ${default} ] || [ ${lint} ]; then
echo "==> Linting the source code"
flake8
fi
# Run the test suite
if [ ${default} ] || [ ${tests} ]; then
echo "==> Running the test suite (excluding slow tests)"
py.test -s -m "not slow"
fi
# Run the rate-limit tests
if [ ${slow} ]; then
echo "==> Running the slow tests"
py.test -s -m "slow"
fi