[ovs-dev] [PATCHv2 2/2] tests: Add tests using tap device.

William Tu u9012063 at gmail.com
Fri Mar 6 19:19:12 UTC 2020


On Fri, Mar 6, 2020 at 7:31 AM Ilya Maximets <i.maximets at ovn.org> wrote:
>
> On 2/20/20 7:59 PM, William Tu wrote:
> > Similar to using veth across namespaces, this patch creates
> > tap devices, assigns to namespaces, and allows traffic to
> > go through different test cases.
> >
> > Signed-off-by: William Tu <u9012063 at gmail.com>
> > ---
> >  tests/atlocal.in              |  3 +++
> >  tests/automake.mk             |  1 +
> >  tests/system-tap.at           | 34 ++++++++++++++++++++++++++++++++++
> >  tests/system-tso-testsuite.at |  1 +
> >  4 files changed, 39 insertions(+)
> >  create mode 100644 tests/system-tap.at
> >
> > diff --git a/tests/atlocal.in b/tests/atlocal.in
> > index 1dc7cd5d087a..a49c5047a0a5 100644
> > --- a/tests/atlocal.in
> > +++ b/tests/atlocal.in
> > @@ -165,6 +165,9 @@ find_command()
> >  # Set HAVE_NC
> >  find_command nc
> >
> > +# Set HAVE_TUNCTL
> > +find_command tunctl
>
> It might be better to use 'ip tuntap' instead.  It should be available
> on most platforms where 'ip' is present.
>
Make sense, will fix it next version.
William


More information about the dev mailing list