Acked-by: Ethan Jackson <et...@nicira.com>
On Tue, Jun 3, 2014 at 5:41 PM, Joe Stringer <joestrin...@nicira.com> wrote: > Signed-off-by: Joe Stringer <joestrin...@nicira.com> > --- > v3: Don't require users to specify "-k" for searches. > v2: No change. > v1: First post. > --- > utilities/ovs-dev.py | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py > index 814a9d0..2c3af19 100755 > --- a/utilities/ovs-dev.py > +++ b/utilities/ovs-dev.py > @@ -144,6 +144,14 @@ commands.append(make) > > > def check(): > + flags = "" > + if options.tests: > + for arg in str.split(options.tests): > + if arg[0].isdigit(): > + flags += "%s " % arg > + else: > + flags += "-k %s " % arg > + ENV["TESTSUITEFLAGS"] = flags > make("check") > commands.append(check) > > @@ -355,6 +363,12 @@ def main(): > const=i, help="compile with -O%d" % i) > parser.add_option_group(group) > > + group = optparse.OptionGroup(parser, "check") > + group.add_option("--tests", dest="tests", metavar="FILTER", > + help="""run specific tests and/or a test category > + eg, --tests=\"1-10 megaflow\"""") > + parser.add_option_group(group) > + > group = optparse.OptionGroup(parser, "run") > group.add_option("-g", "--gdb", dest="gdb", action="store_true", > help="run ovs-vswitchd under gdb") > -- > 1.7.10.4 > > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev