test_suite_alt.sh 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/bin/sh
  2. RETURN_CODE=0
  3. # Exit on the first test failure and set RETURN_CODE = 1
  4. echo "Starting tests...good luck:" \
  5. && echo "Cisco IOS SSH (including SCP) using key auth" \
  6. && py.test -v test_netmiko_scp.py --test_device cisco881_key \
  7. && py.test -v test_netmiko_tcl.py --test_device cisco881_key \
  8. && py.test -v test_netmiko_show.py --test_device cisco881_key \
  9. && py.test -v test_netmiko_config.py --test_device cisco881_key \
  10. \
  11. && echo "Cisco IOS SSH (including SCP)" \
  12. && py.test -v test_netmiko_scp.py --test_device cisco881 \
  13. && py.test -v test_netmiko_tcl.py --test_device cisco881 \
  14. && py.test -v test_netmiko_show.py --test_device cisco881 \
  15. && py.test -v test_netmiko_config.py --test_device cisco881 \
  16. \
  17. && echo "Cisco IOS using SSH config with SSH Proxy" \
  18. && py.test -v test_netmiko_show.py --test_device cisco881_ssh_config \
  19. && py.test -v test_netmiko_config.py --test_device cisco881_ssh_config \
  20. \
  21. && echo "Cisco IOS telnet" \
  22. && py.test -v test_netmiko_show.py --test_device cisco881_telnet \
  23. && py.test -v test_netmiko_config.py --test_device cisco881_telnet \
  24. \
  25. && echo "Cisco SG300" \
  26. && py.test -v test_netmiko_show.py --test_device cisco_s300 \
  27. && py.test -v test_netmiko_config.py --test_device cisco_s300 \
  28. \
  29. && echo "Arista" \
  30. && py.test -v test_netmiko_show.py --test_device arista_sw4 \
  31. && py.test -v test_netmiko_config.py --test_device arista_sw4 \
  32. \
  33. && echo "HP ProCurve" \
  34. && py.test -v test_netmiko_show.py --test_device hp_procurve \
  35. && py.test -v test_netmiko_config.py --test_device hp_procurve \
  36. \
  37. && echo "HP Comware7" \
  38. && py.test -v test_netmiko_show.py --test_device hp_comware \
  39. && py.test -v test_netmiko_config.py --test_device hp_comware \
  40. \
  41. && echo "Juniper" \
  42. && py.test -v test_netmiko_show.py --test_device juniper_srx \
  43. && py.test -v test_netmiko_config.py --test_device juniper_srx \
  44. && py.test -v test_netmiko_commit.py --test_device juniper_srx \
  45. \
  46. && echo "Cisco ASA" \
  47. && py.test -v test_netmiko_show.py --test_device cisco_asa \
  48. && py.test -v test_netmiko_config.py --test_device cisco_asa \
  49. && py.test -v test_netmiko_show.py --test_device cisco_asa_login \
  50. && py.test -v test_netmiko_config.py --test_device cisco_asa_login \
  51. \
  52. && echo "Cisco IOS-XR" \
  53. && py.test -v test_netmiko_show.py --test_device cisco_xrv \
  54. && py.test -v test_netmiko_config.py --test_device cisco_xrv \
  55. && py.test -v test_netmiko_commit.py --test_device cisco_xrv \
  56. \
  57. && echo "Cisco NXOS" \
  58. && py.test -v test_netmiko_show.py --test_device nxos1 \
  59. && py.test -v test_netmiko_config.py --test_device nxos1 \
  60. \
  61. && echo "Linux SSH (using keys)" \
  62. && py.test -s -v test_netmiko_show.py --test_device linux_srv1 \
  63. \
  64. && echo "Autodetect tests" \
  65. && py.test -s -v test_netmiko_autodetect.py --test_device cisco881 \
  66. && py.test -s -v test_netmiko_autodetect.py --test_device arista_sw4 \
  67. && py.test -s -v test_netmiko_autodetect.py --test_device juniper_srx \
  68. && py.test -s -v test_netmiko_autodetect.py --test_device cisco_asa \
  69. && py.test -s -v test_netmiko_autodetect.py --test_device cisco_xrv \
  70. \
  71. || RETURN_CODE=1
  72. exit $RETURN_CODE