diff mbox

[U-Boot,1/9] Makefile: Allow 'make tests' to run tests

Message ID 1470008109-9699-2-git-send-email-sjg@chromium.org
State Accepted
Commit 633cc7ae96d04c4929404f439242ff68177e85ba
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass July 31, 2016, 11:35 p.m. UTC
Add this shortcut for running tests. Unfortunately 'make test' cannot be
used as it is an existing directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Teddy Reed <teddy.reed@gmail.com>
---

 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Tom Rini Aug. 6, 2016, 1 a.m. UTC | #1
On Sun, Jul 31, 2016 at 05:35:01PM -0600, Simon Glass wrote:

> Add this shortcut for running tests. Unfortunately 'make test' cannot be
> used as it is an existing directory.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Suggested-by: Teddy Reed <teddy.reed@gmail.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 99cc8cf..91634d5 100644
--- a/Makefile
+++ b/Makefile
@@ -425,7 +425,7 @@  timestamp_h := include/generated/timestamp_autogenerated.h
 
 no-dot-config-targets := clean clobber mrproper distclean \
 			 help %docs check% coccicheck \
-			 ubootversion backup
+			 ubootversion backup tests
 
 config-targets := 0
 mixed-targets  := 0
@@ -1489,6 +1489,7 @@  help:
 	@echo  ''
 	@echo  'Other generic targets:'
 	@echo  '  all		  - Build all necessary images depending on configuration'
+	@echo  '  tests		  - Build U-Boot for sandbox and run tests'
 	@echo  '* u-boot	  - Build the bare u-boot'
 	@echo  '  dir/            - Build all files in dir and below'
 	@echo  '  dir/file.[oisS] - Build specified target only'
@@ -1521,6 +1522,8 @@  help:
 	@echo  'Execute "make" or "make all" to build all targets marked with [*] '
 	@echo  'For further info see the ./README file'
 
+tests:
+	$(srctree)/test/run
 
 # Documentation targets
 # ---------------------------------------------------------------------------