summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-09-02 15:19:41 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-30 12:13:04 +0000
commitb0888636deaece4bec4e93c4faea9f9d4e7d2ea3 (patch)
tree248127c75b9b3489eb6e41d5dd90206113bd124a
parentc90f4363aaf6e3fe5e7fa52272b65aca9c10d501 (diff)
tests: run vapi tests by default
Type: fix Change-Id: I7b190507446fca745fc4bc6abbdeed48f55abdb9 Signed-off-by: Klement Sekera <ksekera@cisco.com> Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
-rw-r--r--test/Makefile4
-rw-r--r--test/ext/Makefile4
-rw-r--r--test/ext/vapi_c_test.c8
-rw-r--r--test/ext/vapi_cpp_test.cpp8
-rw-r--r--test/test_vapi.py4
5 files changed, 14 insertions, 14 deletions
diff --git a/test/Makefile b/test/Makefile
index f07b0c3467f..d8bbf4d5c69 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -191,9 +191,7 @@ sanity: verify-no-running-vpp
.PHONY: ext
ext:
- @if [ "$(EXTENDED_TESTS)" = "yes" ]; then\
- make -C ext;\
- fi
+ make -C ext
test-dep: verify-test-dir $(PAPI_INSTALL_DONE)
diff --git a/test/ext/Makefile b/test/ext/Makefile
index de219b1a5dc..6ec1213d532 100644
--- a/test/ext/Makefile
+++ b/test/ext/Makefile
@@ -8,6 +8,10 @@ ifeq ($(filter rhel centos,$(OS_ID)),$(OS_ID))
VAPI_CPPBIN=
endif
+ifeq ($(filter yes,$(EXTENDED_TESTS)),$(EXTENDED_TESTS))
+VOM_BIN=
+endif
+
VAPI_LIBS = \
-L$(VPP_INSTALL_PATH)/vpp/lib \
-lvppinfra -lvlibmemoryclient -lsvm -lpthread -lcheck -lrt -lm -lvapiclient
diff --git a/test/ext/vapi_c_test.c b/test/ext/vapi_c_test.c
index d49f23023dd..32595dfe8c8 100644
--- a/test/ext/vapi_c_test.c
+++ b/test/ext/vapi_c_test.c
@@ -574,7 +574,7 @@ START_TEST (test_loopbacks_1)
clib_memset (&seen, 0, sizeof (seen));
dump = vapi_alloc_sw_interface_dump (ctx);
dump->payload.name_filter_valid = 0;
- clib_memset (dump->payload.name_filter, 0,
+ clib_memset (&dump->payload.name_filter, 0,
sizeof (dump->payload.name_filter));
while (VAPI_EAGAIN ==
(rv =
@@ -606,7 +606,7 @@ START_TEST (test_loopbacks_1)
clib_memset (&seen, 0, sizeof (seen));
dump = vapi_alloc_sw_interface_dump (ctx);
dump->payload.name_filter_valid = 0;
- clib_memset (dump->payload.name_filter, 0,
+ clib_memset (&dump->payload.name_filter, 0,
sizeof (dump->payload.name_filter));
while (VAPI_EAGAIN ==
(rv =
@@ -731,7 +731,7 @@ START_TEST (test_loopbacks_2)
sw_interface_dump_ctx dctx = { false, num_ifs, sw_if_indexes, seen, 0 };
vapi_msg_sw_interface_dump *dump = vapi_alloc_sw_interface_dump (ctx);
dump->payload.name_filter_valid = 0;
- clib_memset (dump->payload.name_filter, 0,
+ clib_memset (&dump->payload.name_filter, 0,
sizeof (dump->payload.name_filter));
while (VAPI_EAGAIN ==
(rv =
@@ -772,7 +772,7 @@ START_TEST (test_loopbacks_2)
dctx.last_called = false;
dump = vapi_alloc_sw_interface_dump (ctx);
dump->payload.name_filter_valid = 0;
- clib_memset (dump->payload.name_filter, 0,
+ clib_memset (&dump->payload.name_filter, 0,
sizeof (dump->payload.name_filter));
while (VAPI_EAGAIN ==
(rv =
diff --git a/test/ext/vapi_cpp_test.cpp b/test/ext/vapi_cpp_test.cpp
index 2c2a82c8a9d..401d31ca06e 100644
--- a/test/ext/vapi_cpp_test.cpp
+++ b/test/ext/vapi_cpp_test.cpp
@@ -148,7 +148,7 @@ START_TEST (test_loopbacks_1)
Sw_interface_dump d (con);
auto &p = d.get_request ().get_payload ();
p.name_filter_valid = 0;
- memset (p.name_filter, 0, sizeof (p.name_filter));
+ memset (&p.name_filter, 0, sizeof (p.name_filter));
auto rv = d.execute ();
ck_assert_int_eq (VAPI_OK, rv);
WAIT_FOR_RESPONSE (d, rv);
@@ -190,7 +190,7 @@ START_TEST (test_loopbacks_1)
Sw_interface_dump d (con);
auto &p = d.get_request ().get_payload ();
p.name_filter_valid = 0;
- memset (p.name_filter, 0, sizeof (p.name_filter));
+ memset (&p.name_filter, 0, sizeof (p.name_filter));
auto rv = d.execute ();
ck_assert_int_eq (VAPI_OK, rv);
WAIT_FOR_RESPONSE (d, rv);
@@ -308,7 +308,7 @@ START_TEST (test_loopbacks_2)
Sw_interface_dump d (con, std::ref (swdcb));
auto &p = d.get_request ().get_payload ();
p.name_filter_valid = 0;
- memset (p.name_filter, 0, sizeof (p.name_filter));
+ memset (&p.name_filter, 0, sizeof (p.name_filter));
auto rv = d.execute ();
ck_assert_int_eq (VAPI_OK, rv);
WAIT_FOR_RESPONSE (d, rv);
@@ -337,7 +337,7 @@ START_TEST (test_loopbacks_2)
Sw_interface_dump d (con);
auto &p = d.get_request ().get_payload ();
p.name_filter_valid = 0;
- memset (p.name_filter, 0, sizeof (p.name_filter));
+ memset (&p.name_filter, 0, sizeof (p.name_filter));
auto rv = d.execute ();
ck_assert_int_eq (VAPI_OK, rv);
WAIT_FOR_RESPONSE (d, rv);
diff --git a/test/test_vapi.py b/test/test_vapi.py
index 7bb815d77f3..e010415fe01 100644
--- a/test/test_vapi.py
+++ b/test/test_vapi.py
@@ -4,11 +4,9 @@
import unittest
import os
import signal
-from framework import VppTestCase, running_extended_tests, \
- running_on_centos, VppTestRunner, Worker
+from framework import VppTestCase, running_on_centos, VppTestRunner, Worker
-@unittest.skipUnless(running_extended_tests, "part of extended tests")
class VAPITestCase(VppTestCase):
""" VAPI test """