-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
114 changed files
with
8,209 additions
and
1,250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,59 @@ | ||
#!/usr/bin/env bash | ||
|
||
export TEST_ACRA_PORT=6000 | ||
export TEST_PROXY_PORT=7000 | ||
export TEST_PROXY_COMMAND_PORT=8000 | ||
cd $HOME/project | ||
for version in $VERSIONS; do | ||
export TEST_ACRA_PORT=$(expr ${TEST_ACRA_PORT} + 1); | ||
export TEST_PROXY_PORT=$(expr ${TEST_PROXY_PORT} + 1); | ||
export TEST_PROXY_COMMAND_PORT=$(expr ${TEST_PROXY_COMMAND_PORT} + 1); | ||
export GOROOT=$HOME/go_root_$version/go; | ||
export PATH=$GOROOT/bin/:$PATH; | ||
export GOPATH=$HOME/go_path_$version; | ||
|
||
export TEST_TLS=on | ||
python3 tests/test.py; | ||
if [ "$?" != "0" ]; then echo "$version" >> "$FILEPATH_ERROR_FLAG"; | ||
fi | ||
|
||
export TEST_TLS=off | ||
python3 tests/test.py; | ||
if [ "$?" != "0" ]; then echo "$version" >> "$FILEPATH_ERROR_FLAG"; | ||
fi | ||
echo "-------------------- Testing Go version $version" | ||
|
||
export TEST_ACRA_PORT=$(expr ${TEST_ACRA_PORT} + 1); | ||
export TEST_PROXY_PORT=$(expr ${TEST_PROXY_PORT} + 1); | ||
export TEST_PROXY_COMMAND_PORT=$(expr ${TEST_PROXY_COMMAND_PORT} + 1); | ||
export GOROOT=$HOME/go_root_$version/go; | ||
export PATH=$GOROOT/bin/:$PATH; | ||
export GOPATH=$HOME/go_path_$version; | ||
|
||
# setup postgresql credentials | ||
#export TEST_DB_USER=${POSTGRES_USER} | ||
#export TEST_DB_USER_PASSWORD=${POSTGRES_PASSWORD} | ||
#export TEST_DB_NAME=postgres | ||
export TEST_DB_PORT=5432 | ||
unset TEST_MYSQL | ||
|
||
export TEST_TLS=on | ||
|
||
echo "-------------------- Testing POSTGRES with TEST_TLS=on" | ||
|
||
python3 tests/test.py -v; | ||
if [ "$?" != "0" ]; then echo "pgsql-$version" >> "$FILEPATH_ERROR_FLAG"; | ||
fi | ||
|
||
export TEST_TLS=off | ||
|
||
echo "-------------------- Testing POSTGRES with TEST_TLS=off" | ||
python3 tests/test.py -v; | ||
if [ "$?" != "0" ]; then echo "pgsql-$version" >> "$FILEPATH_ERROR_FLAG"; | ||
fi | ||
|
||
# setup mysql credentials | ||
#export TEST_DB_USER=${MYSQL_USER} | ||
#export TEST_DB_USER_PASSWORD=${MYSQL_PASSWORD} | ||
#export TEST_DB_NAME=${MYSQL_DATABASE} | ||
export TEST_DB_PORT=3306 | ||
export TEST_MYSQL=true | ||
|
||
|
||
echo "-------------------- Testing TEST_MYSQL with TEST_TLS=off" | ||
export TEST_TLS=off | ||
python3 tests/test.py -v; | ||
if [ "$?" != "0" ]; then echo "mysql-$version" >> "$FILEPATH_ERROR_FLAG"; | ||
fi | ||
|
||
echo "-------------------- Testing TEST_MYSQL with TEST_TLS=on" | ||
export TEST_TLS=on | ||
python3 tests/test.py -v; | ||
if [ "$?" != "0" ]; then echo "mysql-$version" >> "$FILEPATH_ERROR_FLAG"; | ||
fi | ||
|
||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,3 +117,5 @@ ENV/ | |
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
cmd/acra_configui/auth.keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.