diff mbox

example/timer: don't run test if configure flag not set

Message ID 1465570819-4200-1-git-send-email-anders.roxell@linaro.org
State Accepted
Commit 5567e30f8eabcfe32497b0ed858a5f76f9d764a4
Headers show

Commit Message

Anders Roxell June 10, 2016, 3 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 example/timer/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

Comments

Maxim Uvarov June 12, 2016, 6:44 p.m. UTC | #1
Thanks, applied.

Maxim.

On 06/10/16 18:00, Anders Roxell wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>   example/timer/Makefile.am | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/example/timer/Makefile.am b/example/timer/Makefile.am
> index 1c733d3..edb8b2c 100644
> --- a/example/timer/Makefile.am
> +++ b/example/timer/Makefile.am
> @@ -10,7 +10,9 @@ odp_timer_simple_LDFLAGS = $(AM_LDFLAGS) -static
>   odp_timer_simple_CFLAGS = $(AM_CFLAGS) -I${top_srcdir}/example
>   dist_odp_timer_simple_SOURCES = odp_timer_simple.c
>   
> +if test_example
>   TESTS = odp_timer_simple
> +endif
>   
>   noinst_HEADERS = \
>   		  $(top_srcdir)/example/example_debug.h
diff mbox

Patch

diff --git a/example/timer/Makefile.am b/example/timer/Makefile.am
index 1c733d3..edb8b2c 100644
--- a/example/timer/Makefile.am
+++ b/example/timer/Makefile.am
@@ -10,7 +10,9 @@  odp_timer_simple_LDFLAGS = $(AM_LDFLAGS) -static
 odp_timer_simple_CFLAGS = $(AM_CFLAGS) -I${top_srcdir}/example
 dist_odp_timer_simple_SOURCES = odp_timer_simple.c
 
+if test_example
 TESTS = odp_timer_simple
+endif
 
 noinst_HEADERS = \
 		  $(top_srcdir)/example/example_debug.h