Try matching different compiler output
This commit is contained in:
parent
53b9c636af
commit
47a7c966bf
2 changed files with 12 additions and 2 deletions
10
doc/plan.org
10
doc/plan.org
|
@ -4850,6 +4850,16 @@ READ 0x44020044 = 0x0001
|
|||
success
|
||||
>>
|
||||
|
||||
#+END_CENTER
|
||||
*** 2019-06-24: meeting laurent
|
||||
*** 2019-06-24: begin porting original code to netpfga
|
||||
#+BEGIN_CENTER
|
||||
+ actual_line=actual (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208)
|
||||
+ [ expected (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86022222222208012222222208) != actual (tlast, tkeep, tdata) = (0, ffffffff, 000000000000000080fe403b0a0000000060dd86012222222208022222222208) ]
|
||||
+ echo packet mismatch
|
||||
packet mismatch
|
||||
|
||||
|
||||
#+END_CENTER
|
||||
** References / Follow up
|
||||
*** RFC 791 IPv4 https://tools.ietf.org/html/rfc791
|
||||
|
|
|
@ -16,8 +16,8 @@ cd $P4_PROJECT_DIR && make
|
|||
# Step 5
|
||||
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash 2>&1 | tee LOG
|
||||
|
||||
expected_line=$(grep ^expected LOG | sed 's/.*= <//')
|
||||
actual_line=$(grep ^actual LOG | sed 's/.*= <//')
|
||||
expected_line=$(grep ^expected LOG | sed -e 's/.*= <//' -e 's/.*= (//')
|
||||
actual_line=$(grep ^actual LOG | sed -e 's/.*= <//' -e 's/.*= (//')
|
||||
|
||||
|
||||
if [ "$expected_line" != "$actual_line" ]; then
|
||||
|
|
Loading…
Reference in a new issue