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 +}