1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-02 14:22:55 +03:00
Files
esp8266/tests/device/libraries/BSTest/Makefile
Ivan Grokhotkov 1acaa8b8f6 allow reading test environment from python mocks
This allows requesting environment variable values set in the C++ test
code, from python mock code. Use case is cross-checking test
results against values expected by the host side part of the test.
2018-04-11 11:19:21 +08:00

23 lines
535 B
Makefile

PYTHON_ENV_DIR=virtualenv
TEST_EXECUTABLE=test/test
all: test
install: $(PYTHON_ENV_DIR)
clean:
rm -rf $(PYTHON_ENV_DIR)
rm -rf $(TEST_EXECUTABLE)
$(PYTHON_ENV_DIR):
virtualenv --no-site-packages $(PYTHON_ENV_DIR)
. $(PYTHON_ENV_DIR)/bin/activate && pip install -r requirements.txt
test: $(TEST_EXECUTABLE) $(PYTHON_ENV_DIR)
. $(PYTHON_ENV_DIR)/bin/activate && python runner.py -e $(TEST_EXECUTABLE) -m test/test.py
$(TEST_EXECUTABLE): test/test.cpp
g++ -std=c++11 -Isrc -o $@ test/test.cpp
.PHONY: test clean install all