Skip to content
Snippets Groups Projects
Commit 23436e3d authored by brinn's avatar brinn
Browse files

fix: integration tests

SVN: 12486
parent 7e3f5568
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ function run_lsof { ...@@ -61,7 +61,7 @@ function run_lsof {
# Tries to find PostgreSQL executable and returns its absolute path. # Tries to find PostgreSQL executable and returns its absolute path.
# If not found, then exits the script with an appropriate error message. # If not found, then exits the script with an appropriate error message.
function run_psql { function run_psql {
for prg in psql psql82 psql83; do for prg in psql psql84 psql83; do
exe=`locate_file $prg $BIN_PATHS` exe=`locate_file $prg $BIN_PATHS`
if [ $exe ]; then if [ $exe ]; then
echo $exe echo $exe
...@@ -209,7 +209,7 @@ function install_openbis_server { ...@@ -209,7 +209,7 @@ function install_openbis_server {
local install_openbis=$1 local install_openbis=$1
psql_cmd=`run_psql` psql_cmd=`run_psql`
$psql_cmd -U postgres -c "drop database $DATABASE" $psql_cmd -U postgres -c "drop database $DATABASE"
$psql_cmd -U postgres -c "create database $DATABASE with owner $USER encoding = 'UNICODE'" $psql_cmd -U postgres -c "create database $DATABASE with owner $USER template = template0 encoding = 'UNICODE'"
$psql_cmd -U $USER -d $DATABASE -f $TEMPLATE/$OPENBIS_SERVER_NAME/test_database.sql $psql_cmd -U $USER -d $DATABASE -f $TEMPLATE/$OPENBIS_SERVER_NAME/test_database.sql
if [ $install_openbis == "true" ]; then if [ $install_openbis == "true" ]; then
...@@ -851,4 +851,4 @@ else ...@@ -851,4 +851,4 @@ else
shift shift
done done
integration_tests $install_dss $install_dmv $install_openbis $use_local_source $reinstall_all integration_tests $install_dss $install_dmv $install_openbis $use_local_source $reinstall_all
fi fi
\ No newline at end of file
...@@ -4,6 +4,9 @@ data-store-server-code = DSS1 ...@@ -4,6 +4,9 @@ data-store-server-code = DSS1
# The root directory of the data store # The root directory of the data store
storeroot-dir = ../data/main-store storeroot-dir = ../data/main-store
# The directory where the command queue file is located; defaults to storeroot-dir
commandqueue-dir =
# Port # Port
port = 8444 port = 8444
......
...@@ -4,6 +4,9 @@ data-store-server-code = DSS2 ...@@ -4,6 +4,9 @@ data-store-server-code = DSS2
# The root directory of the data store # The root directory of the data store
storeroot-dir = ../data/main-store storeroot-dir = ../data/main-store
# The directory where the command queue file is located; defaults to storeroot-dir
commandqueue-dir =
# Port # Port
port = 8445 port = 8445
......
...@@ -15,4 +15,4 @@ JAVA_OPTS=${JAVA_OPTS:=-server -Djavax.net.ssl.trustStore=openBIS.keystore} ...@@ -15,4 +15,4 @@ JAVA_OPTS=${JAVA_OPTS:=-server -Djavax.net.ssl.trustStore=openBIS.keystore}
# #
# Memory options to the JRE # Memory options to the JRE
# #
JAVA_MEM_OPTS="-Xmx2048m -Xms512m -XX:MaxPermSize=256m" JAVA_MEM_OPTS="-Xmx512m -Xms512m -XX:MaxPermSize=256m"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment