Skip to content

Commit

Permalink
Remove incorrect expect calls from counter test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed Aug 2, 2023
1 parent 1b18cb8 commit a0841e5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions testdata/p4_14_samples/counter1.stf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ add tab1 ethernet.dstAddr:0xa1a2a3a4a5a6 act(port:2) = A
add tab1 ethernet.dstAddr:0xb1b2b3b4b5b6 act(port:3) = B
add tab1 ethernet.dstAddr:0xc1c2c3c4c5c6 act(port:5) = C

expect 2
expect 3
expect 5
# check_counter cnt($A)
packet 0 a1a2a3a4a5a6
wait
Expand Down
3 changes: 0 additions & 3 deletions testdata/p4_14_samples/counter2.stf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ add tab1 600 ethernet.dstAddr:0xa1a2a3a4a5a6 act(port:2) = A
add tab1 400 ethernet.dstAddr:0xb1b2b3b4b5b6 act(port:3) = B
add tab1 200 ethernet.dstAddr:0xc1c2c3c4c5c6 act(port:5) = C

expect 2
expect 3
expect 5
check_counter cnt($A)
packet 0 a1a2a3a4a5a6 0000
wait
Expand Down
3 changes: 0 additions & 3 deletions testdata/p4_14_samples/counter3.stf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ add tab1 ethernet.dstAddr:0xa1a2a3a4a5a6 act(port:2) = A
add tab1 ethernet.dstAddr:0xb1b2b3b4b5b6 act(port:3) = B
add tab1 ethernet.dstAddr:0xc1c2c3c4c5c6 act(port:5) = C

expect 2
expect 3
expect 5
packet 0 a1a2a3a4a5a6 0000
wait
check_counter cnt($A) bytes == 12
Expand Down
3 changes: 0 additions & 3 deletions testdata/p4_14_samples/counter4.stf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ add tab1 ethernet.dstAddr:0xa1a2a3a4a5a6 act(port:2, idx:10)
add tab1 ethernet.dstAddr:0xb1b2b3b4b5b6 act(port:3, idx:11)
add tab1 ethernet.dstAddr:0xc1c2c3c4c5c6 act(port:5, idx:10)

expect 2
expect 3
expect 5
packet 0 a1a2a3a4a5a6 0000
wait
check_counter cntDum(10) packets == 1
Expand Down

0 comments on commit a0841e5

Please sign in to comment.