X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_vlib.py;h=3c6288c8eb162ed1f627c7f93050cdc637b01d6c;hb=7c0eb56f4;hp=eedfb2fff8940907779ce45e15890dcf7b4fde73;hpb=6b3f25caff262b536a5449ac5461dd041c92a655;p=vpp.git diff --git a/test/test_vlib.py b/test/test_vlib.py index eedfb2fff89..3c6288c8eb1 100644 --- a/test/test_vlib.py +++ b/test/test_vlib.py @@ -3,6 +3,7 @@ import unittest from framework import VppTestCase, VppTestRunner, running_extended_tests +from framework import running_gcov_tests from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath @@ -24,8 +25,7 @@ class TestVlib(VppTestCase): def tearDown(self): super(TestVlib, self).tearDown() - # @unittest.skipUnless(running_extended_tests, "part of extended tests") - + @unittest.skipUnless(running_gcov_tests, "part of code coverage tests") def test_vlib_main_unittest(self): """ Vlib main.c Code Coverage Test """ @@ -67,6 +67,7 @@ class TestVlib(VppTestCase): else: self.logger.info(cmd + " FAIL retval " + str(r.retval)) + @unittest.skipUnless(running_gcov_tests, "part of code coverage tests") def test_vlib_node_cli_unittest(self): """ Vlib node_cli.c Code Coverage Test """ @@ -111,6 +112,7 @@ class TestVlib(VppTestCase): else: self.logger.info(cmd + " FAIL retval " + str(r.retval)) + @unittest.skipUnless(running_gcov_tests, "part of code coverage tests") def test_vlib_buffer_c_unittest(self): """ Vlib buffer.c Code Coverage Test """ @@ -166,12 +168,13 @@ class TestVlib(VppTestCase): else: self.logger.info(cmd + " FAIL retval " + str(r.retval)) + @unittest.skipUnless(running_gcov_tests, "part of code coverage tests") def test_vlib_format_unittest(self): """ Vlib format.c Code Coverage Test """ cmds = ["loopback create", - "classify filter pcap mask l2 proto ipv6 match l2 proto 86dd", - "classify filter del", + "classify filter pcap mask l2 proto match l2 proto 0x86dd", + "classify filter pcap del", "test format-vlib", ]