Skip to content

Commit

Permalink
[makefile] Update makefile to run the seperate tests for single lane
Browse files Browse the repository at this point in the history
  • Loading branch information
sharafat-10xEngineers committed Dec 23, 2022
1 parent 588578e commit 8869796
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ riscv_tests: $(CVA6_BINARIES) $(ARA_BINARIES)
define rvtest_compile_template
TESTS_$(1) := $(addprefix bin/, $($(addsuffix _ara_tests, $1)))

ifeq ($(nr_lanes), 1)
bin/$(1)-ara-%: $(TESTS_DIR)/$(1)/1_lane_tests/%.$(2) $(RUNTIME_GCC) linker_script
else
bin/$(1)-ara-%: $(TESTS_DIR)/$(1)/%.$(2) $(RUNTIME_GCC) linker_script
endif
mkdir -p bin/
$$(RISCV_CC_GCC) -Iinclude -I$$(TESTS_DIR)/macros/scalar -I$$(TESTS_DIR)/macros/vector $$(RISCV_CCFLAGS_GCC) $$(RISCV_LDFLAGS_GCC) -o $$@ $$< $(RUNTIME_GCC) -T$$(CURDIR)/common/link.ld
$$(RISCV_OBJDUMP) $$(RISCV_OBJDUMP_FLAGS) -D $$@ > $$@.dump
Expand All @@ -119,7 +123,11 @@ endef
define rvtest_compile_template_c
TESTS_$(1) := $(addprefix bin/, $($(addsuffix _ara_tests, $1)))

ifeq ($(nr_lanes), 1)
bin/$(1)-ara-%: $(TESTS_DIR)/$(1)/1_lane_tests/%.$(2) $(RUNTIME_LLVM) linker_script
else
bin/$(1)-ara-%: $(TESTS_DIR)/$(1)/%.$(2) $(RUNTIME_LLVM) linker_script
endif
mkdir -p bin/
$$(RISCV_CC) -Iinclude -I$$(TESTS_DIR)/macros/scalar -I$$(TESTS_DIR)/macros/vector $$(RISCV_CCFLAGS) $$(RISCV_LDFLAGS) -o $$@ $$< $(RUNTIME_LLVM) -T$$(CURDIR)/common/link.ld
$$(RISCV_OBJDUMP) $$(RISCV_OBJDUMP_FLAGS) -D $$@ > $$@.dump
Expand Down
6 changes: 5 additions & 1 deletion apps/common/riscv_tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ include $(TESTS_DIR)/rv64um/Makefrag
include $(TESTS_DIR)/rv64ua/Makefrag
include $(TESTS_DIR)/rv64uf/Makefrag
include $(TESTS_DIR)/rv64ud/Makefrag
include $(TESTS_DIR)/rv64uv/Makefrag
ifeq ($(nr_lanes), 1)
include $(TESTS_DIR)/rv64uv/1_lane_tests/Makefrag
else
include $(TESTS_DIR)/rv64uv/Makefrag
endif
include $(TESTS_DIR)/rv64si/Makefrag

rv64ui_ara_tests := $(addprefix rv64ui-ara-, $(rv64ui_sc_tests))
Expand Down

0 comments on commit 8869796

Please sign in to comment.