diff mbox

simple compile all tests in ./test dir

Message ID 1400249616-9841-1-git-send-email-maxim.uvarov@linaro.org
State Superseded
Headers show

Commit Message

Maxim Uvarov May 16, 2014, 2:13 p.m. UTC
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 test/Makefile | 27 ++++++---------------------
 1 file changed, 6 insertions(+), 21 deletions(-)

Comments

Maxim Uvarov May 16, 2014, 2:17 p.m. UTC | #1
somehow we skipped l2fwd app build. Hope this patch will prevent such 
things in future.

Maxim.

On 05/16/2014 06:13 PM, Maxim Uvarov wrote:
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> ---
>   test/Makefile | 27 ++++++---------------------
>   1 file changed, 6 insertions(+), 21 deletions(-)
>
> diff --git a/test/Makefile b/test/Makefile
> index cc3f4e9..225da66 100644
> --- a/test/Makefile
> +++ b/test/Makefile
> @@ -3,29 +3,14 @@
>   #
>   # SPDX-License-Identifier:	BSD-3-Clause
>   
> -.PHONY: all
> +TESTS = `ls`
> +
> +.PHONY: all clean install
>   all:
> -	 $(MAKE) -C api_test
> -	 $(MAKE) -C example
> -	 $(MAKE) -C packet
> -	 $(MAKE) -C packet_netmap
> -	 $(MAKE) -C timer
> -	 $(MAKE) -C generator
> +	for T in $(TESTS); do $(MAKE) -C $$T; done
>   
> -.PHONY: clean
>   clean:
> -	 $(MAKE) -C api_test clean
> -	 $(MAKE) -C example clean
> -	 $(MAKE) -C packet clean
> -	 $(MAKE) -C packet_netmap clean
> -	 $(MAKE) -C timer clean
> -	 $(MAKE) -C generator clean
> +	for T in $(TESTS); do $(MAKE) -C $$T clean; done
>   
> -.PHONY: install
>   install:
> -	 $(MAKE) -C api_test install
> -	 $(MAKE) -C example install
> -	 $(MAKE) -C packet install
> -	 $(MAKE) -C packet_netmap install
> -	 $(MAKE) -C timer install
> -	 $(MAKE) -C generator install
> +	for T in $(TESTS); do $(MAKE) -C $$T install; done
diff mbox

Patch

diff --git a/test/Makefile b/test/Makefile
index cc3f4e9..225da66 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -3,29 +3,14 @@ 
 #
 # SPDX-License-Identifier:	BSD-3-Clause
 
-.PHONY: all
+TESTS = `ls`
+
+.PHONY: all clean install
 all:
-	 $(MAKE) -C api_test
-	 $(MAKE) -C example
-	 $(MAKE) -C packet
-	 $(MAKE) -C packet_netmap
-	 $(MAKE) -C timer
-	 $(MAKE) -C generator
+	for T in $(TESTS); do $(MAKE) -C $$T; done
 
-.PHONY: clean
 clean:
-	 $(MAKE) -C api_test clean
-	 $(MAKE) -C example clean
-	 $(MAKE) -C packet clean
-	 $(MAKE) -C packet_netmap clean
-	 $(MAKE) -C timer clean
-	 $(MAKE) -C generator clean
+	for T in $(TESTS); do $(MAKE) -C $$T clean; done
 
-.PHONY: install
 install:
-	 $(MAKE) -C api_test install
-	 $(MAKE) -C example install
-	 $(MAKE) -C packet install
-	 $(MAKE) -C packet_netmap install
-	 $(MAKE) -C timer install
-	 $(MAKE) -C generator install
+	for T in $(TESTS); do $(MAKE) -C $$T install; done