Generate different test data
This commit is contained in:
parent
47a7c966bf
commit
0a225479c7
2 changed files with 20 additions and 2 deletions
20
doc/plan.org
20
doc/plan.org
|
@ -4852,15 +4852,33 @@ success
|
||||||
|
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
*** 2019-06-24: meeting laurent
|
*** 2019-06-24: meeting laurent
|
||||||
*** 2019-06-24: begin porting original code to netpfga
|
*** 2019-06-24: begin porting original code to netpfga: packet mismatch - why??
|
||||||
#+BEGIN_CENTER
|
#+BEGIN_CENTER
|
||||||
+ actual_line=actual (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208)
|
+ actual_line=actual (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208)
|
||||||
+ [ expected (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86022222222208012222222208) != actual (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208) ]
|
+ [ expected (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86022222222208012222222208) != actual (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208) ]
|
||||||
+ echo packet mismatch
|
+ echo packet mismatch
|
||||||
packet mismatch
|
packet mismatch
|
||||||
|
|
||||||
|
#+END_CENTER
|
||||||
|
|
||||||
|
v2:
|
||||||
|
|
||||||
|
#+BEGIN_CENTER
|
||||||
|
+ sed -e s/.*= <// -e s/.*= (//
|
||||||
|
+ actual_line=0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208)
|
||||||
|
+ [ 0, ffffffff, 000000000000000080fe403b0a0000000060dd86022222222208012222222208) != 0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208) ]
|
||||||
|
+ echo packet mismatch
|
||||||
|
packet mismatch
|
||||||
|
+ exit 1
|
||||||
|
|
||||||
|
expected (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86022222222208012222222208)
|
||||||
|
actual (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208)
|
||||||
|
|
||||||
|
(0, ffffffff, 000000000000000080fe403b0a0000000060dd86022222222208012222222208)
|
||||||
|
(0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208)
|
||||||
|
|
||||||
#+END_CENTER
|
#+END_CENTER
|
||||||
|
*** 2019-06-24: find out how the expected/actual packet lines are generated
|
||||||
** References / Follow up
|
** References / Follow up
|
||||||
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791
|
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791
|
||||||
*** RFC 792 ICMP https://tools.ietf.org/html/rfc792
|
*** RFC 792 ICMP https://tools.ietf.org/html/rfc792
|
||||||
|
|
2
netpfga/minip4/testdata/gen_testdata.py
vendored
2
netpfga/minip4/testdata/gen_testdata.py
vendored
|
@ -1 +1 @@
|
||||||
gen_testdata-v6zero.py
|
gen_testdata-port1.py
|
Loading…
Reference in a new issue