blob: c90679e8e207f0e554395a2c795268daaed2a1ab [file] [log] [blame]
Klement Sekeraf62ae122016-10-11 11:47:09 +02001PYTHON_VENV_PATH=$(PYTHON_PATH)/virtualenv
Damjan Marionf56b77a2016-10-03 19:44:57 +02002
Klement Sekeraf62ae122016-10-11 11:47:09 +02003test: clean
4 @virtualenv $(PYTHON_VENV_PATH)
5 @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install scapy"
6 @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install pexpect"
7 @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && cd $(WS_ROOT)/vpp-api/python && python setup.py install"
8 @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && python run_tests.py discover -p test_$(TEST)\"*.py\""
9
10retest: clean
11 @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && python run_tests.py discover -p test_$(TEST)\"*.py\""
12
13.PHONY: clean doc
14
15clean:
16 @rm -f /dev/shm/vpp-unittest-*
17 @rm -rf /tmp/vpp-unittest-*
18
19doc:
20 @virtualenv $(PYTHON_VENV_PATH)
21 @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install sphinx"
22 @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && make -C doc html"