]> git.proxmox.com Git - ovs.git/blame - README-OFTest
ofproto: Mark immutable members of struct rule 'const'.
[ovs.git] / README-OFTest
CommitLineData
81a114e5
BP
1 How to Use OFTest With Open vSwitch
2 ===================================
3
4This document describes how to use the OFTest OpenFlow protocol
5testing suite with Open vSwitch in "dummy mode". In this mode of
6testing, no packets travel across physical or virtual networks.
7Instead, Unix domain sockets stand in as simulated networks. This
8simulation is imperfect, but it is much easier to set up, does not
9require extra physical or virtual hardware, and does not require
10supervisor privileges.
11
12Prerequisites
13-------------
14
15First, build Open vSwitch according to the instructions in INSTALL.
16You need not install it.
17
18Second, obtain a copy of OFTest and install its prerequisites. You
19need a copy of OFTest that includes commit 406614846c5 (make ovs-dummy
20platform work again). This commit was merged into the OFTest
21repository on Feb 1, 2013, so any copy of OFTest more recent than that
22should work.
23
24Testing OVS in dummy mode does not require root privilege, so you may
25ignore that requirement.
26
27Optionally, add the top-level OFTest directory (containing the "oft"
28program) to your $PATH. This slightly simplifies running OFTest later.
29
30Running OFTest
31--------------
32
33To run OFTest in dummy mode, run the following command from your Open
34vSwitch build directory:
35
36 make check-oftest OFT=<oft-binary>
37
38where <oft-binary> is the absolute path to the "oft" program in
39OFTest.
40
41If you added "oft" to your $PATH, you may omit the OFT variable
42assignment:
43
44 make check-oftest
45
46By default, "check-oftest" passes "oft" just enough options to enable
47dummy mode. You can use OFTFLAGS to pass additional options. For
48example, to run just the basic.Echo test instead of all tests (the
49default) and enable verbose logging:
50
51 make check-oftest OFT=<oft-binary> OFTFLAGS='--verbose -T basic.Echo'
52
53Interpreting OFTest Results
54---------------------------
55
56Please interpret OFTest results cautiously. Open vSwitch can fail a
57given test in OFTest for many reasons, including bugs in Open vSwitch,
58bugs in OFTest, bugs in the "dummy mode" integration, and differing
59interpretations of the OpenFlow standard and other standards.
60
61Open vSwitch has not been validated against OFTest. Please do report
62test failures that you believe to represent bugs in Open vSwitch.
63Include the precise versions of Open vSwitch and OFTest in your bug
64report, plus any other information needed to reproduce the problem.
65
66Contact
67-------
68
69bugs@openvswitch.org
70http://openvswitch.org/