pytest.sh 661 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. ## This script is to run emqx cluster smoke tests (fvt) in github action
  3. ## This script is executed in paho_client
  4. set -x
  5. set +e
  6. LB="haproxy"
  7. apk update && apk add git curl
  8. git clone -b develop-4.0 https://github.com/emqx/paho.mqtt.testing.git /paho.mqtt.testing
  9. pip install pytest
  10. pytest -v /paho.mqtt.testing/interoperability/test_client/V5/test_connect.py -k test_basic --host "$LB"
  11. RESULT=$?
  12. pytest -v /paho.mqtt.testing/interoperability/test_client --host "$LB"
  13. RESULT=$(( RESULT + $? ))
  14. # pytest -v /paho.mqtt.testing/interoperability/test_cluster --host1 "node1.emqx.io" --host2 "node2.emqx.io"
  15. # RESULT=$(( RESULT + $? ))
  16. exit $RESULT