Introduce an option for testing binary API 01/2701/4
authorFilip Tehlar <ftehlar@cisco.com>
Wed, 7 Sep 2016 13:47:47 +0000 (15:47 +0200)
committerFilip Tehlar <ftehlar@cisco.com>
Mon, 12 Sep 2016 12:41:10 +0000 (14:41 +0200)
commitbf231ba795387064e7c4f1781240619429a4ef29
tree86da34369910ca1c85672ed30d4374d4ecda9ac3
parent1df1d674eaace35d52973786403eb1dbe3c0d5eb
Introduce an option for testing binary API

This patch introduces an option for choosing a configuration method in
tests. Supported methods are VAT and vpp's debug CLI.

 * Added new aprameter to run.sh to define method (--cfg-method [vat|cli]).
   Defaults to vat.
 * When running a test separately the method can be set as follows:
   $ sudo CFG_METHOD=cli ./tests/<test_case>.sh
   Again, it defaults to 'vat' if not provided.
 * Increased readability in test driver scripts when checking test
   status
 * When debugging you can stop test execution by running the test with WAIT=1:
    $ sudo WAIT=1 tests/<test_case>.sh

Change-Id: If851139cff072ba2e3b3594a3345763d360f3b59
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
150 files changed:
.gitignore [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/basic/4o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/4o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/4o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/4o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/4o4_and_6o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/4o4_and_6o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/4o4_and_6o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/4o4_and_6o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/4o4_no_odl/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/4o4_no_odl/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/4o4_no_odl/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/4o4_no_odl/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/4o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/4o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/4o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/4o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/6o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/6o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/6o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/6o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/6o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/6o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/6o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/6o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/6o6_no_odl/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/6o6_no_odl/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/6o6_no_odl/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/6o6_no_odl/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/4o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/eid_virt/4o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/4o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/eid_virt/4o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/4o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/eid_virt/4o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/4o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/eid_virt/4o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/6o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/eid_virt/6o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/6o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/eid_virt/6o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/6o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/eid_virt/6o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/eid_virt/6o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/eid_virt/6o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/multihoming/4o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/multihoming/4o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/multihoming/4o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/multihoming/4o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/multihoming/6o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/multihoming/6o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/multihoming/6o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/multihoming/6o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/multihoming/l2o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/multihoming/l2o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/multihoming/l2o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/multihoming/l2o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o4/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o4/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o4/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o6/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o6/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_single_iface/6o6/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/6o46/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/6o46/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/6o46/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/6o46/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/6o46/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/6o46/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface/6o46/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface_two_customers/6o46/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface_two_customers/6o46/vpp1.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface_two_customers/6o46/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface_two_customers/6o46/vpp2.config
tests/data_plane/configs/vpp_lite_config/rtr_two_iface_two_customers/6o46/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface_two_customers/6o46/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/rtr_two_iface_two_customers/6o46/vpp3.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/smr_rtr_disjoint/rtr.config [deleted file]
tests/data_plane/configs/vpp_lite_config/smr_rtr_disjoint/vpp1.config
tests/data_plane/configs/vpp_lite_config/smr_rtr_disjoint/vpp1.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/smr_rtr_disjoint/vpp2.config
tests/data_plane/configs/vpp_lite_config/smr_rtr_disjoint/vpp2.vat [deleted file]
tests/data_plane/configs/vpp_lite_config/smr_rtr_disjoint/vpp3.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/smr_rtr_disjoint/vpp3.vat [deleted file]
tests/data_plane/vpp_lite_topo/config.sh
tests/data_plane/vpp_lite_topo/run.sh
tests/data_plane/vpp_lite_topo/scripts/cmd_mappings.py [new file with mode: 0644]
tests/data_plane/vpp_lite_topo/scripts/generate_config.py [new file with mode: 0755]
tests/data_plane/vpp_lite_topo/test_driver/basic.sh
tests/data_plane/vpp_lite_topo/test_driver/basic_l2.sh
tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh
tests/data_plane/vpp_lite_topo/test_driver/basic_no_odl.sh
tests/data_plane/vpp_lite_topo/test_driver/multihoming.sh
tests/data_plane/vpp_lite_topo/test_driver/multihoming_l2.sh
tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh
tests/data_plane/vpp_lite_topo/test_driver/rtr_single_iface.sh
tests/data_plane/vpp_lite_topo/test_driver/rtr_two_iface.sh
tests/data_plane/vpp_lite_topo/test_driver/rtr_two_iface_two_customers.sh
tests/data_plane/vpp_lite_topo/test_driver/smr_rtr_disjoint.sh
tests/data_plane/vpp_lite_topo/test_driver/two_customers_topo.sh
tests/data_plane/vpp_lite_topo/topologies/basic_topo.sh
tests/data_plane/vpp_lite_topo/topologies/basic_topo_l2.sh
tests/data_plane/vpp_lite_topo/topologies/basic_two_odls.sh
tests/data_plane/vpp_lite_topo/topologies/multihoming_topo.sh
tests/data_plane/vpp_lite_topo/topologies/multihoming_topo_l2.sh
tests/data_plane/vpp_lite_topo/topologies/rtr_single_iface.sh
tests/data_plane/vpp_lite_topo/topologies/rtr_two_iface.sh
tests/data_plane/vpp_lite_topo/topologies/rtr_two_iface_two_customers.sh
tests/data_plane/vpp_lite_topo/topologies/smr_rtr_disjoint.sh
tests/data_plane/vpp_lite_topo/topologies/two_customers_topo.sh