Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

How to run the full suite of aca_tests

Eric Li edited this page Mar 15, 2021 · 5 revisions

Running full suite of aca_tests

This document explains how to run the full suite of aca_tests

1. Setting up OVS for test running:

Install OVS on the clean ubuntu 18.04 system

apt install openvswitch-switch

If you start a new container, you will need:

/etc/init.d/openvswitch-switch restart
ovs-vswitchd --pidfile --detach

2. Basic tests works on container/VM/Physical machines

./build/tests/aca_tests

3. Two machines L2 traffic test works on container/VM/Physical machines

On Child with IP 10.213.43.188:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_CREATE_test_traffic_CHILD -p 10.213.43.187

On Parent with IP 10.213.43.187:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_CREATE_test_traffic_PARENT -c 10.213.43.188

4. (GoalStateV2) Two machines L2 traffic test works on container/VM/Physical machines

On Child with IP 10.213.43.188:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_CREATE_test_traffic_CHILD_V2 -p 10.213.43.187

On Parent with IP 10.213.43.187:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_CREATE_test_traffic_PARENT_V2 -c 10.213.43.188

5. Additional one machine tests which only works on VM/Physical machines with docker support

./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_l2_dhcp_test

./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_l3_dhcp_test

./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_ROUTING_test_traffic_one_machine -c 10.213.43.187 [IP of its own machine]

./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_ROUTING_test_traffic_one_machine_V2 -c 10.213.43.187 [IP of its own machine]

6. Additional two machines L3 tests which only works on VM/Physical machines with docker support

On Child with IP 10.213.43.188:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_ROUTING_test_traffic_CHILD -p 10.213.43.187

On Parent with IP 10.213.43.187:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_ROUTING_test_traffic_PARENT -c 10.213.43.188

7. (GoalStateV2) Additional two machines L3 tests which only works on VM/Physical machines with docker support

On Child with IP 10.213.43.188:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_ROUTING_test_traffic_CHILD_V2 -p 10.213.43.187

On Parent with IP 10.213.43.187:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_2_ports_ROUTING_test_traffic_PARENT_V2 -c 10.213.43.188

8. Additional two machines ARP tests which only works on VM/Physical machines with docker support

On Child with IP 10.213.43.188:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_l2_arp_test_CHILD -p 10.213.43.187

On Parent with IP 10.213.43.187:
./build/tests/aca_tests --gtest_also_run_disabled_tests --gtest_filter=*DISABLED_l2_arp_test_PARENT -c 10.213.43.188