forked from zalando-stups/taupage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.sh
executable file
·24 lines (18 loc) · 1.03 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
#!/bin/bash
# run all syntax and unit tests
set -e
echo "### flake8 checks"
flake8 -v .
echo "### bash syntax checks"
tests/check-bash-script-syntax.sh
echo "### python doctests"
python3 -m doctest -v runtime/usr/local/lib/python3.4/dist-packages/taupage/__init__.py
PYTHONPATH=runtime/usr/local/lib/python3.4/dist-packages python3 -m doctest -v runtime/opt/taupage/runtime/Docker.py
PYTHONPATH=runtime/usr/local/lib/python3.4/dist-packages python3 -m doctest -v runtime/opt/taupage/init.d/03-push-taupage-yaml.py
PYTHONPATH=runtime/usr/local/lib/python3.4/dist-packages python3 -m doctest -v runtime/opt/taupage/init.d/10-prepare-disks.py
PYTHONPATH=runtime/usr/local/lib/python3.4/dist-packages python3 -m doctest -v runtime/opt/taupage/bin/push-audit-logs.py
echo "### python unittests"
PYTHONPATH=runtime/usr/local/lib/python3.4/dist-packages:runtime/opt/taupage/healthcheck python3 tests/python/test_elbHealthChecker.py
echo "#################################"
echo "# Tests completed successfully! #"
echo "#################################"