diff options
author | jahoti <jahoti@tilde.team> | 2021-12-02 00:00:00 +0000 |
---|---|---|
committer | jahoti <jahoti@tilde.team> | 2021-12-02 00:00:00 +0000 |
commit | 5a0026423b61915fd2f9544456b2634505a952b1 (patch) | |
tree | 957e2ea870efd88dd987e56c6c89d2a24bcb6ee6 /Makefile.in | |
parent | 6d819aaea70756b778e71478ec6ce40a8d680841 (diff) | |
download | browser-extension-5a0026423b61915fd2f9544456b2634505a952b1.tar.gz browser-extension-5a0026423b61915fd2f9544456b2634505a952b1.zip |
Allow testing behavior to be customizedbuild-sys
Adds PYTEST, PYTHON, BROWSER_BIN, TEST_PORT, and TEST_PROFILE variables
to configure.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in index 5a376e1..f87a816 100644 --- a/Makefile.in +++ b/Makefile.in @@ -69,11 +69,11 @@ test/certs/rootCA.pem: test/certs/rootCA.key openssl req -x509 -new -nodes -key $< -days 1024 -out $@ \ -subj "/CN=Haketilo Test" -test: test/certs/rootCA.pem test/certs/site.key - MOZ_HEADLESS=whatever pytest +test: test/certs/rootCA.pem test/certs/site.key test/config.py + MOZ_HEADLESS=whatever $(PYTEST) -test-environment: test/certs/rootCA.pem test/certs/site.key - python3 -m test +test-environment: test/certs/rootCA.pem test/certs/site.key test/config.py + $(PYTHON) -m test # helper targets clean mostlyclean: @@ -85,7 +85,7 @@ clean mostlyclean: rm -rf $$(find . -type d -name __pycache__) distclean: clean - rm -f Makefile config.status record.conf + rm -f Makefile config.status record.conf test/config.py maintainer-clean: distclean @echo 'This command is intended for maintainers to use; it' @@ -107,6 +107,11 @@ Makefile: config.status Makefile.in record.conf config.status: write_makefile.sh cp "$(srcdir)"/write_makefile.sh config.status +test/config.py: + @echo 'No test/config.py file was found; please re-configure' + @echo 'before attempting any more make operations.' + exit 1 + # Unused GNU-specified targets install-html: install-dvi: |