Project

General

Profile

« Previous | Next » 

Revision 5a002642

Added by jahoti almost 2 years ago

  • ID 5a0026423b61915fd2f9544456b2634505a952b1
  • Parent 6d819aae

Allow testing behavior to be customized

Adds PYTEST, PYTHON, BROWSER_BIN, TEST_PORT, and TEST_PROFILE variables
to configure.

View differences:

Makefile.in
69 69
	openssl req -x509 -new -nodes -key $< -days 1024 -out $@ \
70 70
		 -subj "/CN=Haketilo Test"
71 71

  
72
test: test/certs/rootCA.pem test/certs/site.key
73
	MOZ_HEADLESS=whatever pytest
72
test: test/certs/rootCA.pem test/certs/site.key test/config.py
73
	MOZ_HEADLESS=whatever $(PYTEST)
74 74

  
75
test-environment: test/certs/rootCA.pem test/certs/site.key
76
	python3 -m test
75
test-environment: test/certs/rootCA.pem test/certs/site.key test/config.py
76
	$(PYTHON) -m test
77 77

  
78 78
# helper targets
79 79
clean mostlyclean:
......
85 85
	rm -rf $$(find . -type d -name __pycache__)
86 86

  
87 87
distclean: clean
88
	rm -f Makefile config.status record.conf
88
	rm -f Makefile config.status record.conf test/config.py
89 89

  
90 90
maintainer-clean: distclean
91 91
	@echo 'This command is intended for maintainers to use; it'
......
107 107
config.status: write_makefile.sh
108 108
	cp "$(srcdir)"/write_makefile.sh config.status
109 109

  
110
test/config.py:
111
	@echo 'No test/config.py file was found; please re-configure'
112
	@echo 'before attempting any more make operations.'
113
	exit 1
114

  
110 115
# Unused GNU-specified targets
111 116
install-html:
112 117
install-dvi:

Also available in: Unified diff