Skip to content

Commit

Permalink
Restore test script committed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Mar 18, 2021
1 parent a584380 commit 450b8d7
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .docker/docker-qgis-test.sh
Expand Up @@ -62,6 +62,30 @@ popd > /dev/null # /root/QGIS
# Restore Oracle test data
##############################

echo "${bold}Load Oracle database...🙏${endbold}"

export ORACLE_HOST="oracle"
export QGIS_ORACLETEST_DBNAME="${ORACLE_HOST}/XEPDB1"
export QGIS_ORACLETEST_DB="host=${QGIS_ORACLETEST_DBNAME} port=1521 user='QGIS' password='qgis'"

echo "Wait a moment while loading Oracle database."
COUNT=0
while ! echo exit | sqlplus -L SYSTEM/adminpass@$QGIS_ORACLETEST_DBNAME &> /dev/null
do
printf "🙏"
sleep 5
if [[ $(( COUNT++ )) -eq 200 ]]; then
break
fi
done
if [[ ${COUNT} -eq 201 ]]; then
echo "timeout, no oracle, no 🙏"
else
echo " done 👀"
pushd /root/QGIS > /dev/null
/root/QGIS/tests/testdata/provider/testdata_oracle.sh $ORACLE_HOST
popd > /dev/null # /root/QGIS
fi

This comment has been minimized.

Copy link
@3nids

3nids Mar 18, 2021

Member

@elpaso restoring the oracle DB setup is an error?

This comment has been minimized.

Copy link
@elpaso

elpaso via email Mar 18, 2021

Author Contributor

##############################
# Restore SQL Server test data
Expand Down Expand Up @@ -104,5 +128,5 @@ else
echo "Flaky tests are run!"
fi
echo "List of skipped tests: $EXCLUDE_TESTS"
python3 /root/QGIS/.ci/ctest2ci.py xvfb-run ctest -R 'PyQgsServerWMSGetMap$' -V -E "${EXCLUDE_TESTS}" -S /root/QGIS/.ci/config.ctest --output-on-failure
python3 /root/QGIS/.ci/ctest2ci.py xvfb-run ctest -V -E "${EXCLUDE_TESTS}" -S /root/QGIS/.ci/config.ctest --output-on-failure

0 comments on commit 450b8d7

Please sign in to comment.