From 2f8064f61b3fb832588b7a520d5104ddcbb45173 Mon Sep 17 00:00:00 2001 From: Roberto Peruzzo Date: Sun, 25 Feb 2024 15:35:49 +0100 Subject: [PATCH] fix #20: re-enables release test. (#25) --- tests/test.bats | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/test.bats b/tests/test.bats index 2bc41f8..220e048 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -34,14 +34,14 @@ teardown() { ddev -s sqlsrv exec "/opt/mssql-tools/bin/sqlcmd -P ${MSSQL_SA_PASSWORD} -S ${MSSQL_HOST} -U SA -Q 'SELECT name, database_id, create_date FROM sys.databases;'" | grep master } -#@test "install from release" { -# set -eu -o pipefail -# cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) -# echo "# ddev get ddev/ddev-sqlsrv with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 -# ddev get ddev/ddev-sqlsrv -# ddev restart >/dev/null -# # Checks that the sqlsrv drivers for PHP are installed. -# ddev exec "php -i" | grep "sqlsrv" -# # Checks sqlsrv connection. -# ddev -s sqlsrv exec "/opt/mssql-tools/bin/sqlcmd -P ${MSSQL_SA_PASSWORD} -S ${MSSQL_HOST} -U SA -Q 'SELECT name, database_id, create_date FROM sys.databases;'" | grep master -#} +@test "install from release" { + set -eu -o pipefail + cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) + echo "# ddev get ddev/ddev-sqlsrv with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 + ddev get ddev/ddev-sqlsrv + ddev restart >/dev/null + # Checks that the sqlsrv drivers for PHP are installed. + ddev exec "php -i" | grep "sqlsrv" + # Checks sqlsrv connection. + ddev -s sqlsrv exec "/opt/mssql-tools/bin/sqlcmd -P ${MSSQL_SA_PASSWORD} -S ${MSSQL_HOST} -U SA -Q 'SELECT name, database_id, create_date FROM sys.databases;'" | grep master +}