Message ID | 1461168469-6574-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | New |
Headers | show |
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 --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
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(+)