#!/bin/bash # # Simple script to run all functional tests with multiple test servers # # Test server running latest self-hosted site tput setaf 3 echo echo "Testing latest self-hosted site..." tput sgr0 export OPENPHOTO_TEST_CONFIG=test unset OPENPHOTO_TEST_SERVER_API python -m unittest discover --catch tests/functional # Test server running APIv1 OpenPhoto instance tput setaf 3 echo echo "Testing APIv1 self-hosted site..." tput sgr0 export OPENPHOTO_TEST_CONFIG=test-apiv1 export OPENPHOTO_TEST_SERVER_API=1 python -m unittest discover --catch tests/functional # Test account on hosted trovebox.com site tput setaf 3 echo echo "Testing latest hosted site..." tput sgr0 export OPENPHOTO_TEST_CONFIG=test-hosted unset OPENPHOTO_TEST_SERVER_API python -m unittest discover --catch tests/functional