Skip to content
Snippets Groups Projects
Commit 7088263e authored by Simon Rose's avatar Simon Rose
Browse files

Refactored to only use pytest

parent d4a65f77
No related branches found
No related tags found
No related merge requests found
TEST_DIR:=$(TOP)/tests TEST_DIR:=$(TOP)/tests
TESTS:=$(wildcard $(TEST_DIR)/test*)
\ No newline at end of file
.PHONY: test .PHONY: test
test: collect_tests $(TESTS) test:
pytest $(TEST_DIR) -v
.PHONY: collect_tests
collect_tests:
@echo "Collecting tests:"
@for test in $(TESTS); do \
printf " %s\n" "$$test"; \
done;
.PHONY: $(TESTS)
$(TESTS):
$(info Running test $@...)
${QUIET}${MAKE} -C $@ test
File moved
File moved
.PHONY: default
default: test
.PHONY: test
test: check_env
@pytest . -v
.PHONY: check_env
check_env: guard-EPICS_BASE guard-E3_REQUIRE_VERSION
@#$(or $(wildcard ${EPICS_BASE}/require/${E3_REQUIRE_VERSION}/bin/setE3Env.bash), $(error setE3Env.bash not found. Please check your version of base and require.))
guard-%:
@#$(or ${$*}, $(error $* is not set))
.PHONY: test
test:
echo exit | iocsh.bash
\ No newline at end of file
File moved
.PHONY: default
default: test
.PHONY: test
test: check_env
@pytest . -v
.PHONY: check_env
check_env: guard-EPICS_BASE guard-E3_REQUIRE_VERSION
@#$(or $(wildcard ${EPICS_BASE}/require/${E3_REQUIRE_VERSION}/bin/setE3Env.bash), $(error setE3Env.bash not found. Please check your version of base and require.))
guard-%:
@#$(or ${$*}, $(error $* is not set))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment