++ regexp
This commit is contained in:
parent
35139976dd
commit
8d2c0cbf9b
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ cd $P4_PROJECT_DIR && make
|
||||||
# Step 5
|
# Step 5
|
||||||
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash >LOG 2>&1
|
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash >LOG 2>&1
|
||||||
|
|
||||||
expected_line=$(grep ^expected LOG | sed 's/.*(//')
|
expected_line=$(grep ^expected LOG | sed 's/.*= <//')
|
||||||
actual_line=$(grep ^actual LOG | sed 's/.*(//')
|
actual_line=$(grep ^actual LOG | sed 's/.*= <//')
|
||||||
|
|
||||||
if [ "$expected_line" != "$actual_line" ]; then
|
if [ "$expected_line" != "$actual_line" ]; then
|
||||||
echo packet mismatch
|
echo packet mismatch
|
||||||
|
|
Loading…
Reference in a new issue