diff mbox

example: switch: depend test run on configure option

Message ID 1461168469-6574-1-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov April 20, 2016, 4:07 p.m. UTC
If --enable-test-example was not provided 'make check'
should not run this test.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 example/switch/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mike Holmes April 20, 2016, 4:22 p.m. UTC | #1
See submitted  Fix broken conditional example execution

On 20 April 2016 at 12:07, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> If --enable-test-example was not provided 'make check'

> should not run this test.

>

> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

> ---

>  example/switch/Makefile.am | 2 ++

>  1 file changed, 2 insertions(+)

>

> diff --git a/example/switch/Makefile.am b/example/switch/Makefile.am

> index e18c681..4134bcf 100644

> --- a/example/switch/Makefile.am

> +++ b/example/switch/Makefile.am

> @@ -9,7 +9,9 @@ noinst_HEADERS = \

>

>  dist_odp_switch_SOURCES = odp_switch.c

>

> +if test_example

>  if HAVE_PCAP

>  TESTS = switch_run.sh

>  endif

> +endif

>  EXTRA_DIST = switch_run.sh udp64.pcap

> --

> 2.7.1.250.gff4ea60

>

> _______________________________________________

> lng-odp mailing list

> lng-odp@lists.linaro.org

> https://lists.linaro.org/mailman/listinfo/lng-odp

>




-- 
Mike Holmes
Technical Manager - Linaro Networking Group
Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
"Work should be fun and collaborative, the rest follows"
diff mbox

Patch

diff --git a/example/switch/Makefile.am b/example/switch/Makefile.am
index e18c681..4134bcf 100644
--- a/example/switch/Makefile.am
+++ b/example/switch/Makefile.am
@@ -9,7 +9,9 @@  noinst_HEADERS = \
 
 dist_odp_switch_SOURCES = odp_switch.c
 
+if test_example
 if HAVE_PCAP
 TESTS = switch_run.sh
 endif
+endif
 EXTRA_DIST = switch_run.sh udp64.pcap