Skip to content

Commit 7da25f9

Browse files
feat(test-framework): Add a tests rule to bao Makefile
Signed-off-by: Miguel Silva <[email protected]>
1 parent 68d6c32 commit 7da25f9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ targets:=$(MAKECMDGOALS)
5353
ifeq ($(targets),)
5454
targets:=all
5555
endif
56-
non_build_targets+=ci clean
56+
non_build_targets+=ci clean tests
5757
build_targets:=$(strip $(foreach target, $(targets), \
5858
$(if $(findstring $(target),$(non_build_targets)),,$(target))))
5959

@@ -342,3 +342,9 @@ $(call ci, format, $(all_c_files))
342342

343343
.PHONY: ci
344344
ci: license-check format-check
345+
346+
tests_dir := $(cur_dir)/tests
347+
-include $(tests_dir)/tests.mk
348+
349+
.PHONY: tests
350+
tests: framework

0 commit comments

Comments
 (0)