Changeset View
Changeset View
Standalone View
Standalone View
docker/tests/run_tests.sh
Show All 13 Lines | |||||
# Get test scripts directory | # Get test scripts directory | ||||
TEST_SCRIPTS_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) | TEST_SCRIPTS_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) | ||||
# Set the docker-compose.yml file to use | # Set the docker-compose.yml file to use | ||||
export COMPOSE_FILE=$TEST_SCRIPTS_DIR/../docker-compose.yml | export COMPOSE_FILE=$TEST_SCRIPTS_DIR/../docker-compose.yml | ||||
# Useful global variables | # Useful global variables | ||||
SWH_WEB_API_BASEURL="http://localhost:5004/api/1" | SWH_WEB_API_BASEURL="http://localhost:5080/api/1" | ||||
CURRENT_TEST_SCRIPT="" | CURRENT_TEST_SCRIPT="" | ||||
# Colored output related variables and functions (only if stdout is a terminal) | # Colored output related variables and functions (only if stdout is a terminal) | ||||
if test -t 1; then | if test -t 1; then | ||||
GREEN='\033[0;32m' | GREEN='\033[0;32m' | ||||
RED='\033[0;31m' | RED='\033[0;31m' | ||||
NC='\033[0m' | NC='\033[0m' | ||||
else | else | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |