diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2016-03-29 20:23:34 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-03-30 16:19:06 +0300 |
commit | de4c3d6aba7b0fe2b842ef759a259f1bc74acfc9 (patch) | |
tree | 87304f4282a771ef5069d36b6ed2f367a2c56a9f /example | |
parent | d50d367e4c3d94a0bc47958e7ad4ab305065e14a (diff) |
example: m4: configure option to check examples
Suggested-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Tested-and-reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r-- | example/l2fwd_simple/Makefile.am | 2 | ||||
-rw-r--r-- | example/m4/configure.m4 | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/example/l2fwd_simple/Makefile.am b/example/l2fwd_simple/Makefile.am index 53b0e26e6..fe2065452 100644 --- a/example/l2fwd_simple/Makefile.am +++ b/example/l2fwd_simple/Makefile.am @@ -9,7 +9,9 @@ noinst_HEADERS = \ dist_odp_l2fwd_simple_SOURCES = odp_l2fwd_simple.c +if test_example if HAVE_PCAP TESTS = l2fwd_simple_run.sh endif +endif EXTRA_DIST = l2fwd_simple_run.sh udp64.pcap diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 74869ffa7..3a7211f13 100644 --- a/example/m4/configure.m4 +++ b/example/m4/configure.m4 @@ -1,3 +1,15 @@ +########################################################################## +# Enable/disable test-example +########################################################################## +test_example=no +AC_ARG_ENABLE([test-example], + [ --enable-test-example run basic test aginast examples], + [if test "x$enableval" = "xyes"; then + test_example=yes + else + test_example=no + fi]) + AC_CONFIG_FILES([example/classifier/Makefile example/generator/Makefile example/ipsec/Makefile |