test_suite_tmp.sh 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 telnet" \
  18. && py.test -v test_netmiko_show.py --test_device cisco881_telnet \
  19. && py.test -v test_netmiko_config.py --test_device cisco881_telnet \
  20. \
  21. && echo "Cisco SG300" \
  22. && py.test -v test_netmiko_show.py --test_device cisco_s300 \
  23. && py.test -v test_netmiko_config.py --test_device cisco_s300 \
  24. \
  25. && echo "Arista" \
  26. && py.test -v test_netmiko_show.py --test_device arista_sw4 \
  27. && py.test -v test_netmiko_config.py --test_device arista_sw4 \
  28. \
  29. && echo "HP ProCurve" \
  30. && py.test -v test_netmiko_show.py --test_device hp_procurve \
  31. && py.test -v test_netmiko_config.py --test_device hp_procurve \
  32. \
  33. && echo "Juniper" \
  34. && py.test -v test_netmiko_show.py --test_device juniper_srx \
  35. && py.test -v test_netmiko_config.py --test_device juniper_srx \
  36. && py.test -v test_netmiko_commit.py --test_device juniper_srx \
  37. \
  38. && echo "Cisco ASA" \
  39. && py.test -v test_netmiko_show.py --test_device cisco_asa \
  40. && py.test -v test_netmiko_config.py --test_device cisco_asa \
  41. && py.test -v test_netmiko_show.py --test_device cisco_asa_login \
  42. && py.test -v test_netmiko_config.py --test_device cisco_asa_login \
  43. \
  44. && echo "Cisco IOS-XR" \
  45. && py.test -v test_netmiko_show.py --test_device cisco_xrv \
  46. && py.test -v test_netmiko_config.py --test_device cisco_xrv \
  47. && py.test -v test_netmiko_commit.py --test_device cisco_xrv \
  48. \
  49. && echo "Cisco NXOS" \
  50. && py.test -v test_netmiko_show.py --test_device nxos1 \
  51. && py.test -v test_netmiko_config.py --test_device nxos1 \
  52. \
  53. && echo "Autodetect tests" \
  54. && py.test -s -v test_netmiko_autodetect.py --test_device cisco881 \
  55. && py.test -s -v test_netmiko_autodetect.py --test_device arista_sw4 \
  56. && py.test -s -v test_netmiko_autodetect.py --test_device juniper_srx \
  57. && py.test -s -v test_netmiko_autodetect.py --test_device cisco_asa \
  58. && py.test -s -v test_netmiko_autodetect.py --test_device cisco_xrv \
  59. \
  60. || RETURN_CODE=1
  61. exit $RETURN_CODE
  62. #&& echo "Linux SSH (using keys)" \
  63. #&& py.test -s -v test_netmiko_show.py --test_device linux_srv1 \
  64. #\