Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 827 Bytes

standalone_mode.md

File metadata and controls

24 lines (18 loc) · 827 Bytes

Running SAI Challenger in standalone mode

Build Docker image for ASIC trident2 target saivs:

./build.sh -a trident2 -t saivs

NOTE: The saivs target - defined in sonic-sairedis - is used as a virtual data-plane interface in SONiC Virtual Switch (SONiC VS). Though it does not configure the forwarding path but still process SAI CRUD calls in proper manner. This allows to use saivs for SAI testcases development without running traffic.

Start Docker container:

./run.sh -a trident2 -t saivs

Run SAI Challenger testcases:

./exec.sh -t saivs pytest --testbed=saivs_standalone -v -k "test_l2_basic"

Run SAI Challenger testcases and generate HTML report:

./exec.sh -t saivs pytest --testbed=saivs_standalone -v -k "test_l2_basic" --html=report.html --self-contained-html