Chetan Gaonker | cc19ac4 | 2016-05-04 17:21:50 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | cord_tester="$(dirname $0)/cord-test.py" |
| 3 | if [ ! -f $cord_tester ]; then |
| 4 | cord_tester="$HOME/cord-tester/src/test/setup/cord-test.py" |
| 5 | fi |
Chetan Gaonker | 503032a | 2016-05-12 12:06:29 -0700 | [diff] [blame] | 6 | echo "Building all cord-tester images." |
| 7 | $cord_tester build all |
Chetan Gaonker | cc19ac4 | 2016-05-04 17:21:50 -0700 | [diff] [blame] | 8 | docker kill cord-onos || true |
| 9 | docker kill cord-quagga || true |
Chetan Gaonker | 503032a | 2016-05-12 12:06:29 -0700 | [diff] [blame] | 10 | docker kill cord-radius || true |
A R Karthick | b03cecd | 2016-07-27 10:27:55 -0700 | [diff] [blame] | 11 | function finish { |
| 12 | $cord_tester cleanup --olt |
| 13 | pkill -f cord-test |
A R Karthick | b03cecd | 2016-07-27 10:27:55 -0700 | [diff] [blame] | 14 | } |
| 15 | trap finish EXIT |
| 16 | $cord_tester setup --olt --start-switch |
| 17 | cnt=`docker ps -lq` |
Chetan Gaonker | cc19ac4 | 2016-05-04 17:21:50 -0700 | [diff] [blame] | 18 | echo "Running TLS authentication test" |
A R Karthick | b03cecd | 2016-07-27 10:27:55 -0700 | [diff] [blame] | 19 | docker exec $cnt nosetests -v /root/test/src/test/tls/tlsTest.py |
| 20 | echo "Running DHCP relay request test" |
| 21 | docker exec $cnt nosetests -v /root/test/src/test/dhcprelay/dhcprelayTest.py:dhcprelay_exchange.test_dhcpRelay_1request |
Chetan Gaonker | cc19ac4 | 2016-05-04 17:21:50 -0700 | [diff] [blame] | 22 | echo "Running IGMP join verify test" |
A R Karthick | b03cecd | 2016-07-27 10:27:55 -0700 | [diff] [blame] | 23 | docker exec $cnt nosetests -v /root/test/src/test/igmp/igmpTest.py:igmp_exchange.test_igmp_join_verify_traffic |
Chetan Gaonker | cc19ac4 | 2016-05-04 17:21:50 -0700 | [diff] [blame] | 24 | echo "Running VROUTER test with 5 routes" |
A R Karthick | b03cecd | 2016-07-27 10:27:55 -0700 | [diff] [blame] | 25 | docker exec $cnt nosetests -v /root/test/src/test/vrouter/vrouterTest.py:vrouter_exchange.test_vrouter_with_5_routes |
A R Karthick | 112cb6a | 2016-07-27 16:53:13 -0700 | [diff] [blame] | 26 | echo "Running CORD subscriber tests" |
| 27 | docker exec $cnt nosetests -v /root/test/src/test/cordSubscriber/cordSubscriberTest.py |