feat: add test targets to makefile
Add `test`, `test_spmc` and `test_el3_spmc` target to the `Makefile`, so
you can run `make test` and automatically run the test in docker if
`HAFNIUM_HERMETIC_BUILD=true` is set.
Change-Id: I43960eb57d58cab2c10b453627e655fdd45372a3
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/Makefile b/Makefile
index 345e292..b5a4311 100644
--- a/Makefile
+++ b/Makefile
@@ -114,6 +114,20 @@
@echo " BUILD DOCUMENTATION"
make --no-print-directory -C docs html
+# Named `test_` rather than `test` because make will not run the target if the
+# `test` directory has not changed.
+.PHONY: test_
+test_: all
+ ./kokoro/test.sh
+
+.PHONY: test_spmc
+test_spmc: all
+ ./kokoro/test_spmc.sh
+
+.PHONY: test_el3_spmc
+test_el3_spmc: all
+ ./kokoro/test_el3_spmc.sh
+
.PHONY: clean
clean:
@$(NINJA) -C $(OUT_DIR) -t clean