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

Run tests using debug architecture if available and specified

parent 7eebd77a
No related branches found
No related tags found
1 merge request!129E3-1186: Allow tests to be run with debug architecture if specified
......@@ -11,5 +11,6 @@ VARS_EXCLUDES+=RMDIR
VARS_EXCLUDES+=TEMP_CELL_PATH
ifneq (,$(findstring test,$(MAKECMDGOALS)))
TEST_DEBUG_ARCH:=$(if $(and $(findstring debug,$(EPICS_HOST_ARCH)),$(wildcard $(EPICS_BASE)/bin/$(EPICS_HOST_ARCH)/softIocPVA)),$(EPICS_HOST_ARCH))
E3_MODULES_PATH=$(TEMP_CELL_PATH)/$(notdir $(EPICS_BASE))/require-$(E3_REQUIRE_VERSION)
endif
......@@ -5,6 +5,10 @@ test:
ifeq ($(shell command -v run-iocsh > /dev/null 2>&1 ; echo $$?),0)
test: temp_install run_test module_tests cleanup_test
ifneq ($(strip $(TEST_DEBUG_ARCH)),)
run_test: EPICS_HOST_ARCH = $(TEST_DEBUG_ARCH)
module_tests: EPICS_HOST_ARCH = $(TEST_DEBUG_ARCH)
endif
.PHONY: temp_install
temp_install:
......
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