Skip to content

Commit

Permalink
Add temporary "bug target" target to reproduce bmv2 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ccascone committed May 21, 2020
1 parent e76b640 commit d4b8f1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/ptf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ endef

all: fabric fabric-bng fabric-spgw fabric-int fabric-spgw-int

bug: set-cmd
$(call run_tests,fabric,bug)

fabric: set-cmd
ifndef TEST
$(eval TEST = all ^spgw ^int ^bng ^dth)
Expand Down
2 changes: 2 additions & 0 deletions tests/ptf/fabric.ptf/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def runTest(self):
self.doRunTest(pkt, HOST2_MAC, tagged[0], tagged[1])


@group("bug")
class FabricIPv4UnicastGtpTest(IPv4UnicastTest):
@autocleanup
def runTest(self):
Expand Down Expand Up @@ -215,6 +216,7 @@ def runTest(self):
self, [exp_pkt_to2, exp_pkt_to3], [self.port2, self.port3])


@group("bug")
class FabricIPv4UnicastGroupTestAllPortTcpDport(FabricTest):
@autocleanup
def runTest(self):
Expand Down
6 changes: 3 additions & 3 deletions travis/run_stratum_bmv2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -e

/fabric-p4test/travis/veth_setup.sh

# Clean write-reqs.txt
echo "" > /fabric-p4test/travis/log/write-reqs.txt
# Clean write-reqs.log
echo "" > /fabric-p4test/travis/log/write-reqs.log

stratum_bmv2 -device_id=1 \
-chassis_config_file=/fabric-p4test/travis/chassis_config.txt \
Expand All @@ -15,7 +15,7 @@ stratum_bmv2 -device_id=1 \
-cpu_port=255 \
-external-stratum-urls=0.0.0.0:28000 \
-local_stratum_url=localhost:28000 \
-write_req_log_file=/fabric-p4test/travis/log/write-reqs.txt \
-write_req_log_file=/fabric-p4test/travis/log/write-reqs.log \
-logtostderr=true \
-bmv2_log_level debug \
-log_dir=/fabric-p4test/travis/log &> /fabric-p4test/travis/log/switch.log

0 comments on commit d4b8f1f

Please sign in to comment.