run-full-tests 723 B

12345678910111213141516171819
  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-full-dev-tests
  6. #
  7. # For more information, see:
  8. # https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/
  9. set -e
  10. python -m pip install --upgrade pip==19.3.1
  11. pip install tox==3.14.0
  12. tox
  13. apk add --no-cache borgbackup postgresql-client mariadb-client
  14. working_directory="$PWD"
  15. adduser --disabled-password tests
  16. su - tests -c "cd $working_directory && tox --workdir /tmp -e end-to-end"