Begin from the beginning: reset to port1 only
This commit is contained in:
parent
5f4930ae43
commit
1059e8d0e0
6 changed files with 99 additions and 10 deletions
|
|
@ -6,17 +6,21 @@ set -x
|
|||
echo "First source all variables and THEN run this script"
|
||||
read something
|
||||
|
||||
LOG=~/master-thesis/netpfga/log/compile-$(date +%F-%H%M%S)
|
||||
exec > "$LOG"
|
||||
exec 2>&1
|
||||
|
||||
# Step 1..3: create code
|
||||
# Step 4:
|
||||
date
|
||||
cd $P4_PROJECT_DIR && make
|
||||
|
||||
# Step 5
|
||||
# Step 5: sdnet simulation
|
||||
date
|
||||
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash 2>&1 | tee LOG
|
||||
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash
|
||||
|
||||
expected_line=$(grep ^expected LOG | sed -e 's/.*= <//' -e 's/.*= (//')
|
||||
actual_line=$(grep ^actual LOG | sed -e 's/.*= <//' -e 's/.*= (//')
|
||||
expected_line=$(grep ^expected "$LOG" | sed -e 's/.*= <//' -e 's/.*= (//')
|
||||
actual_line=$(grep ^actual "$LOG" | sed -e 's/.*= <//' -e 's/.*= (//')
|
||||
|
||||
# if [ -z "$expected_line" ]; then
|
||||
# echo "Empty packet grep -- probably broken - aborting"
|
||||
|
|
@ -40,7 +44,9 @@ cd $P4_PROJECT_DIR && make uninstall_sdnet && make install_sdnet
|
|||
date
|
||||
cd $NF_DESIGN_DIR/test/sim_switch_default && make
|
||||
|
||||
# Step 9
|
||||
# -------- FIX config_writes.py here: add " pass" or overwrite whole script
|
||||
|
||||
# Step 9: Run the SUME simulation
|
||||
date
|
||||
cd $SUME_FOLDER && ./tools/scripts/nf_test.py sim --major switch --minor default
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue