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
|
CHARM_DIR := $(shell pwd)
TEST_TIMEOUT := 900
SERIES := $(juju get-environment default-series)
default:
@echo "One of:"
@echo " make testdep"
@echo " make lint"
@echo " make unit_test"
@echo " make integration_test"
@echo " make integration_test_91"
@echo " make integration_test_92"
@echo " make integration_test_93"
@echo " make integration_test_94"
@echo
@echo "There is no 'make test'"
test_bot_tests:
@echo "Installing dependencies and running automatic-testrunner tests"
tests/00-setup.sh
tests/01-lint.sh
tests/02-unit-tests.sh
tests/03-basic-amulet.py
testdep:
tests/00-setup.sh
unit_test:
@echo "Unit tests of hooks"
cd hooks && trial test_hooks.py
integration_test:
@echo "PostgreSQL integration tests, all non-beta versions, ${SERIES}"
trial test.PG91Tests
trial test.PG92Tests
trial test.PG93Tests
trial test.PG94Tests
integration_test_91:
@echo "PostgreSQL 9.1 integration tests, ${SERIES}"
trial test.PG91Tests
integration_test_92:
@echo "PostgreSQL 9.2 integration tests, ${SERIES}"
trial test.PG92Tests
integration_test_93:
@echo "PostgreSQL 9.3 integration tests, ${SERIES}"
trial test.PG93Tests
integration_test_94:
@echo "PostgreSQL 9.4 integration tests, ${SERIES}"
trial test.PG94Tests
lint:
@echo "Lint check (flake8)"
@flake8 -v \
--exclude hooks/charmhelpers,hooks/_trial_temp \
--ignore=E402 \
hooks actions testing tests test.py
sync:
@bzr cat \
lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py \
> .charm_helpers_sync.py
@python .charm_helpers_sync.py -c charm-helpers.yaml
@rm .charm_helpers_sync.py
|