From 809933a56709a44fb64315f69dd3f3bc8ead81b5 Mon Sep 17 00:00:00 2001 From: Michael Neuling Date: Sun, 24 May 2020 12:08:47 +1000 Subject: [PATCH] Add unit tests make target We don't run these but we should. The SOC tests have bit rotted. We need to fix them but leave them out for now. Signed-off-by: Michael Neuling --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index fb22dd4..2f7ec47 100644 --- a/Makefile +++ b/Makefile @@ -189,6 +189,20 @@ test_micropython: core_tb test_micropython_long: core_tb @./scripts/test_micropython_long.py +tests_core_tb = $(patsubst %_tb,%_tb_test,$(core_tbs)) +tests_soc_tb = $(patsubst %_tb,%_tb_test,$(soc_tbs)) + +%_test: % + ./$< --assert-level=error > /dev/null + +tests_core: $(tests_core_tb) + +tests_soc: $(tests_soc_tb) + +# FIXME SOC tests have bit rotted, so disable for now +#tests_unit: tests_core tests_soc +tests_unit: tests_core + TAGS: find . -name '*.vhdl' | xargs ./scripts/vhdltags -- 2.30.2