From 171180afda5564d6b11b39fbb2e155f24b11eb68 Mon Sep 17 00:00:00 2001 From: Kirk Byers Date: Tue, 12 Apr 2016 08:52:01 -0700 Subject: [PATCH] Minor test scripts --- tests/for_loop.sh | 5 +++++ tests/test_suite_alt.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100755 tests/for_loop.sh create mode 100755 tests/test_suite_alt.sh diff --git a/tests/for_loop.sh b/tests/for_loop.sh new file mode 100755 index 000000000..46d634e71 --- /dev/null +++ b/tests/for_loop.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for i in `seq 1 10`; do + ./test_suite_alt.sh +done diff --git a/tests/test_suite_alt.sh b/tests/test_suite_alt.sh new file mode 100755 index 000000000..518c646c1 --- /dev/null +++ b/tests/test_suite_alt.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +RETURN_CODE=0 + +# Exit on the first test failure and set RETURN_CODE = 1 +echo "Starting tests...good luck:" \ +&& echo "Cisco IOS" \ +&& py.test -v test_netmiko_show.py --test_device cisco881 \ +&& py.test -v test_netmiko_config.py --test_device cisco881 \ +\ +&& echo "Arista" \ +&& py.test -v test_netmiko_show.py --test_device arista_sw4 \ +&& py.test -v test_netmiko_config.py --test_device arista_sw4 \ +\ +&& echo "HP ProCurve" \ +&& py.test -v test_netmiko_show.py --test_device hp_procurve \ +&& py.test -v test_netmiko_config.py --test_device hp_procurve \ +\ +&& echo "Juniper" \ +&& py.test -v test_netmiko_show.py --test_device juniper_srx \ +&& py.test -v test_netmiko_config.py --test_device juniper_srx \ +&& py.test -v test_netmiko_commit.py --test_device juniper_srx \ +\ +&& echo "Cisco IOS-XR" \ +&& py.test -v test_netmiko_show.py --test_device cisco_xrv \ +&& py.test -v test_netmiko_config.py --test_device cisco_xrv \ +&& py.test -v test_netmiko_commit.py --test_device cisco_xrv \ +\ +&& echo "Cisco ASA" \ +&& py.test -v test_netmiko_show.py --test_device cisco_asa \ +&& py.test -v test_netmiko_config.py --test_device cisco_asa \ +|| RETURN_CODE=1 + +exit $RETURN_CODE