run-full-tests 1.0 KB

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # This script installs test dependencies and runs all tests, including end-to-end tests. It
  3. # is designed to run inside a test container, and presumes that other test infrastructure like
  4. # databases are already running. Therefore, on a developer machine, you should not run this script
  5. # directly. Instead, run scripts/run-end-to-end-tests
  6. #
  7. # For more information, see:
  8. # https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/
  9. set -e
  10. if [ -z "$TEST_CONTAINER" ]; then
  11. echo "This script is designed to work inside a test container and is not intended to"
  12. echo "be run manually. If you're trying to run borgmatic's end-to-end tests, execute"
  13. echo "scripts/run-end-to-end-dev-tests instead."
  14. exit 1
  15. fi
  16. apk add --no-cache python3 py3-pip borgbackup postgresql17-client mariadb-client mongodb-tools \
  17. py3-mongo py3-regex py3-ruamel.yaml py3-ruamel.yaml.clib py3-tox py3-yaml bash sqlite fish
  18. export COVERAGE_FILE=/tmp/.coverage
  19. tox --workdir /tmp/.tox --sitepackages
  20. tox --workdir /tmp/.tox --sitepackages -e end-to-end