on master help sign in
Makefile: add test.pep8 test.unit test.robot (from manage.sh)

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

commit7e572a2453d18bdb3f44b65cbc1441004c4faa5f authorMarkus Heiser <markus.heiser@darmarit.de> dateThu 28 Nov 2019, 20:05 (7 years ago) parentb55a800
1 file changed+18
Makefile+18
Makefile+18
@@ -10,6 +10,7 @@ all: clean install
1010
1111PHONY += help
1212help:
13+ @echo ' test - run developer tests'
1314 @echo ' run - run developer instance'
1415 @echo ' install - developer install (./local)'
1516 @echo ' uninstall - uninstall (./local)'
@@ -39,4 +40,21 @@ run: pyenvinstall
3940 ) &
4041 $(PY_ENV)/bin/python ./searx/webapp.py
4142
43+# test
44+# ----
45+
46+PHONY += test test.pep8 test.unit test.robot
47+
48+test: test.pep8 test.unit test.robot
49+
50+test.pep8: pyenvinstall
51+ $(PY_ENV_ACT); ./manage.sh pep8_check
52+
53+test.unit: pyenvinstall
54+ $(PY_ENV_ACT); ./manage.sh unit_tests
55+
56+test.robot: pyenvinstall
57+ $(PY_ENV_ACT); ./manage.sh install_geckodriver
58+ $(PY_ENV_ACT); ./manage.sh robot_tests
59+
4260.PHONY: $(PHONY)