diff --git a/Jamfile b/Jamfile index 61ee5d4c9..3c442afa9 100644 --- a/Jamfile +++ b/Jamfile @@ -61,6 +61,7 @@ Doc doc ; # build the documentation Flash flash : $(TARGET:S=.hex) ; Reset reset ; Terminal term ; +Test test : all ; Debug debug : $(TARGET) ; ListModules listmodules ; diff --git a/Jamrules.common b/Jamrules.common index 3813f13f8..d92882466 100644 --- a/Jamrules.common +++ b/Jamrules.common @@ -169,6 +169,17 @@ actions Flash $(FLASHER) $(FLASHFLAGS) $(>) } +# +# Run all tests for active project +rule Test +{ + Depends $(<) : $(>) ; +} +actions Test +{ + for tst in projects/$(PROJECT)/tests/*; do $tst; done +} + # Reset connected sensor node actions Reset {