run-tests.sh 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. if [ "${NO_QN}" != true ]
  18. then
  19. ../../query-node/start.sh
  20. fi
  21. # Execute tests
  22. if [ "${NO_STORAGE}" != true ]
  23. then
  24. ./start-storage.sh
  25. export REUSE_KEYS=true
  26. fi
  27. # First scenario..
  28. ./run-test-scenario.sh $1
  29. # In between pickup generated keys from first scenario or bootstrap scene with all well known
  30. # keys for workers and members..
  31. # Second scenario..
  32. # ./run-test-scenario.sh $2