blob: 842551a492d99ef81779adf75bf461fd3d63b1b7 (
plain)
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
|
#!/bin/sh
set -e
# prepare test env
export PATH=$PATH:/usr/lib/pacemaker
export PYTHONPATH=/usr/share/crmsh
# test/unittests/test_report.py::test_ts_to_dt assumes UTC
export TZ=UTC
mkdir /usr/share/crmsh/doc
# some tests fail if the cluster is running
service pacemaker stop
service corosync stop
cd /usr/share/crmsh/tests/unittests
printf "Running unittests...\n"
py.test-3 -vv
cp /usr/share/pacemaker/*.rng /usr/share/crmsh/tests/unittests/schemas/
cd /usr/share/crmsh/tests
printf "\nRunning cibtests...\n"
./cib-tests.sh
printf "\nRunning regressions...\n"
./regression.sh -m buildbot || true
cat crmtestout/regression.out
|