From 57648d3fbeac31ce58c44f9808293a7b1f0c867f Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Wed, 19 Jan 2022 15:42:30 +0100 Subject: [PATCH] [TASK] runTests.sh: Use sqlite by default for functionals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the default DBMS for functional tests in runTests.sh from mariadb to sqlite: sqlite is sigificantly quicker with functional tests and thus the preferred DBMS selection when running tests locally for us lazy devs since we can omit the '-d sqlite' option now. This has no impact on CI since the DBMS is always explicitly set in gitlab-ci configs. Resolves: #96585 Releases: main, 11.5 Change-Id: I93b68f48a409fc1afb14d8a2aecbc295dd2255e5 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73065 Tested-by: Benjamin Franzke <bfr@qbus.de> Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benjamin Franzke <bfr@qbus.de> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- Build/Scripts/runTests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index 6c39ca441458..cab4b8096be1 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -126,13 +126,13 @@ Options: - mysqli (default) - pdo_mysql - -d <mariadb|mysql|postgres|sqlite> + -d <sqlite|mariadb|mysql|postgres> Only with -s functional|functionalDeprecated|acceptance|acceptanceInstall Specifies on which DBMS tests are performed - - mariadb (default): use mariadb + - sqlite: (default): use sqlite + - mariadb use mariadb - mysql: use MySQL server - postgres: use postgres - - sqlite: use sqlite -i <10.1|10.2|10.3|10.4|10.5> Only with -d mariadb @@ -270,7 +270,7 @@ fi # Option defaults TEST_SUITE="unit" -DBMS="mariadb" +DBMS="sqlite" PHP_VERSION="8.1" PHP_XDEBUG_ON=0 PHP_XDEBUG_PORT=9003 -- GitLab