aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElias Rudberg <elias.rudberg@bahnhof.net>2020-12-03 13:29:38 +0100
committerElias Rudberg <elias.rudberg@bahnhof.net>2020-12-03 13:29:38 +0100
commit12b1b5611d12075ba491505c0d354629097e840b (patch)
treebc155ecfe813a2406cf510487cf937d526358544
parent27860dd068dede7a20474090adb474609bae54f7 (diff)
tests: fix typo in numbered list in documentation
Fix a typo in numbered list in the documentation. Also mention possibility of using TEST= to run a specific test. Type: fix Signed-off-by: Elias Rudberg <elias.rudberg@bahnhof.net> Change-Id: I026703af014493afb3dea2d9ad99a7bb510b135d
-rw-r--r--test/doc/overview.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/doc/overview.rst b/test/doc/overview.rst
index 2ef942684e9..89e557f4518 100644
--- a/test/doc/overview.rst
+++ b/test/doc/overview.rst
@@ -344,7 +344,7 @@ basic IPv4 forwarding.
class IP4FwdTestCase(VppTestCase):
""" IPv4 simple forwarding test case """
-2. Add a setUpClass function containing the setup needed for our test to run::
+3. Add a setUpClass function containing the setup needed for our test to run::
@classmethod
def setUpClass(self):
@@ -355,7 +355,7 @@ basic IPv4 forwarding.
i.config_ip4() # configure IPv4 address on the interface
i.resolve_arp() # resolve ARP, so that we know VPP MAC
-3. Create a helper method to create the packets to send::
+4. Create a helper method to create the packets to send::
def create_stream(self, src_if, dst_if, count):
packets = []
@@ -377,7 +377,7 @@ basic IPv4 forwarding.
# return the created packet list
return packets
-4. Create a helper method to verify the capture::
+5. Create a helper method to verify the capture::
def verify_capture(self, src_if, dst_if, capture):
packet_info = None
@@ -419,7 +419,7 @@ basic IPv4 forwarding.
"Interface %s: Packet expected from interface "
"%s didn't arrive" % (dst_if.name, src_if.name))
-5. Add the test code to test_basic function::
+6. Add the test code to test_basic function::
def test_basic(self):
count = 10
@@ -441,4 +441,5 @@ basic IPv4 forwarding.
# verify capture
self.verify_capture(self.pg0, self.pg1, capture)
-6. Run the test by issuing 'make test'.
+7. Run the test by issuing 'make test' or, to run only this specific
+ test, issue 'make test TEST=test_ip4_fwd'.