Revision 201fcfad
Added by jahoti almost 2 years ago
- ID 201fcfadc87e21b0b10ecf3a2a9d114328a65ffb
- Parent c39c6b9e
Makefile.in | ||
---|---|---|
61 | 61 |
|
62 | 62 |
# testing-related targets |
63 | 63 |
test/certs/: |
64 |
[ -d test ] || mkdir test |
|
64 | 65 |
mkdir $@ |
65 | 66 |
|
66 | 67 |
test/certs/%.key: | test/certs/ |
... | ... | |
71 | 72 |
-subj "/CN=Haketilo Test" |
72 | 73 |
|
73 | 74 |
test: test/certs/rootCA.pem test/certs/site.key |
74 |
@echo 'Warning: if the build directory is not the same' |
|
75 |
@echo 'as the source directory, THIS WILL NOT WORK.' |
|
76 |
MOZ_HEADLESS=whatever $(PYTEST) |
|
75 |
MOZ_HEADLESS=whatever $(PYTEST) "$(srcdir)" |
|
77 | 76 |
|
78 | 77 |
test-environment: test/certs/rootCA.pem test/certs/site.key |
79 |
@echo 'Warning: if the build directory is not the same' |
|
80 |
@echo 'as the source directory, THIS WILL NOT WORK.' |
|
81 |
$(PYTHON) -m test |
|
82 |
|
|
83 |
hello: record.conf |
|
84 |
@ls |
|
78 |
PYTHONPATH="$(srcdir)" $(PYTHON) -m test |
|
85 | 79 |
|
86 | 80 |
# helper targets |
87 | 81 |
clean mostlyclean: |
Also available in: Unified diff
Support tests outside the source directory
Explicitly use certs in the build directory, and tests in the source