Running SAI tests manually
Go to the AMD server and build SAI for simulation first:
user@node10:~$ git clone git@gitlab.larch:openlan/sai-marvell-api.git
user@node10:~$ cd sai-marvell-api
user@node10:~/sai-marvell-api$ git submodule update --init --recursive
user@node10:~/sai-marvell-api$ ./build_in_docker.sh -s
Build a container for running tests:
user@node10:~/sai-marvell-api$ ./build_in_docker.sh -a
Clone apptests to sai-marvell-api directory:
user@node10:~/sai-marvell-api$ git clone git@gitlab.larch:openlan/apptests.git
Run the container:
ruser@node10:~/sai-marvell-api$ ./run_tests_docker.sh
TAP device opened: tap0
TAP device opened: tap1
TAP device opened: tap2
TAP device opened: tap3
TAP device opened: tap4
TAP device opened: tap5
Starting Dropbear SSH server: dropbear.
#################
# Usage examples:
#################
# Use command below to run all tests for sai-aldrin3m target
python2.7 apptest.py 127.0.0.1 root password /root/sai/ sai-aldrin3m feature all 1
# Use command below to run a single test for sai-ac5x target
python2.7 apptest.py 127.0.0.1 root password /root/sai sai-ac5x feature saiCrmAclTableTest 1
# For list of targets see apptest.py
And follow Usage examples.