[ovs-discuss] Running ovs test cases

Lance Richardson lrichard at redhat.com
Tue Dec 6 00:48:05 UTC 2016


> From: "satish kondapalli" <nitw.satish at gmail.com>
> To: ovs-discuss at openvswitch.org
> Sent: Monday, December 5, 2016 7:17:36 PM
> Subject: [ovs-discuss]  Running ovs test cases
> 
> Hi,
> 
> is there way to run only specific test case in ovs( instead of running all
> cases -- make check). How to run only connection tracking test case and logs
> for the same test?
> 
> Sateesh
> 

Sure, take a look at references to TESTSUITEFLAGS in INSTALL.rst (or INSTALL.md
if you're on an older branch).

For example, you can list all test cases with the keyword "conntrack" via:

   make check TESTSUITEFLAGS="-l -k conntrack"

And you can execute them via:

   make check TESTSUITEFLAGS="-k conntrack"

To execute one or more tests by number:

   make check TESTSUITEFLAGS="1,3,4-14"

If you want to preserve logs for test cases that execute successfully,
specifiy the "debug" flag, e.g.:

   make check TESTSUITEFLAGS="-k conntrack -d"

If you're interested in testing data path support for conntrack, you might
also be interested in the "check-kernel" and "check-system-userspace".

Hope this helps,

    Lance
targets.


More information about the discuss mailing list