blob: 8da2c0499e2c6001ed4d88654964951ec8a4ac1d [file] [log] [blame]
Chetan Gaonkercc19ac42016-05-04 17:21:50 -07001#!/usr/bin/env bash
2cord_tester="$(dirname $0)/cord-test.py"
3if [ ! -f $cord_tester ]; then
4 cord_tester="$HOME/cord-tester/src/test/setup/cord-test.py"
5fi
Chetan Gaonker503032a2016-05-12 12:06:29 -07006echo "Building all cord-tester images."
7$cord_tester build all
Chetan Gaonkercc19ac42016-05-04 17:21:50 -07008docker kill cord-onos || true
9docker kill cord-quagga || true
Chetan Gaonker503032a2016-05-12 12:06:29 -070010docker kill cord-radius || true
A R Karthickb03cecd2016-07-27 10:27:55 -070011function finish {
12 $cord_tester cleanup --olt
13 pkill -f cord-test
A R Karthickb03cecd2016-07-27 10:27:55 -070014}
15trap finish EXIT
16$cord_tester setup --olt --start-switch
17cnt=`docker ps -lq`
Chetan Gaonkercc19ac42016-05-04 17:21:50 -070018echo "Running TLS authentication test"
ChetanGaonker055d7f72016-11-07 02:11:23 -080019docker exec $cnt nosetests -v /root/test/src/test/tls/tlsTest.py:eap_auth_exchange.test_eap_tls
A R Karthickb03cecd2016-07-27 10:27:55 -070020echo "Running DHCP relay request test"
21docker exec $cnt nosetests -v /root/test/src/test/dhcprelay/dhcprelayTest.py:dhcprelay_exchange.test_dhcpRelay_1request
Chetan Gaonkercc19ac42016-05-04 17:21:50 -070022echo "Running IGMP join verify test"
A R Karthickb03cecd2016-07-27 10:27:55 -070023docker exec $cnt nosetests -v /root/test/src/test/igmp/igmpTest.py:igmp_exchange.test_igmp_join_verify_traffic
Chetan Gaonkercc19ac42016-05-04 17:21:50 -070024echo "Running VROUTER test with 5 routes"
A R Karthickb03cecd2016-07-27 10:27:55 -070025docker exec $cnt nosetests -v /root/test/src/test/vrouter/vrouterTest.py:vrouter_exchange.test_vrouter_with_5_routes
A R Karthick112cb6a2016-07-27 16:53:13 -070026echo "Running CORD subscriber tests"
ChetanGaonker055d7f72016-11-07 02:11:23 -080027docker exec $cnt nosetests -v /root/test/src/test/cordSubscriber/cordSubscriberTest.py:subscriber_exchange.test_cord_subscriber_join_recv