run-tests.sh 989 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env bash
  2. set -e
  3. SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
  4. cd $SCRIPT_PATH
  5. CONTAINER_ID=$(./run-test-node-docker.sh)
  6. function cleanup() {
  7. docker logs ${CONTAINER_ID} --tail 15
  8. docker-compose -f ../../docker-compose.yml down -v
  9. }
  10. trap cleanup EXIT
  11. sleep 3
  12. # Display runtime version
  13. yarn workspace api-scripts tsnode-strict src/status.ts | grep Runtime
  14. # Start any other services we want
  15. # docker-compose -f ../../docker-compose.yml up -d colossus-1
  16. # Start a query-node
  17. ../../query-node/start.sh
  18. # Execute tests
  19. # We can load env config used to start docker services and pass them on to the
  20. # tests. This could be useful to capture keys used or URLs.
  21. # We just have to watchout for clashing env var names.
  22. #set -a
  23. #. ../../.env
  24. #set +a
  25. # First scenario..
  26. ./run-test-scenario.sh $1
  27. # In between pickup generated keys from first scenario or bootstrap scene with all well known
  28. # keys for workers and members..
  29. # Second scenario..
  30. # ./run-test-scenario.sh $2