Commit b851f3ea authored by Stefan Bürk's avatar Stefan Bürk
Browse files

[TASK] Add runTest.sh support for more MariaDB and PostgreSQL versions

New versions for MariaDB and PostgreSQL has been released
in the meanwhile, which falls into the supported range.

Also not considered for automated testing yet, support
to run it them at least locally on development machines
should be added.

This patch adds following versions:

* MariaDB version '10.6' and '10.7' for argument '-i'
* PostgreSQL version '14' for argument '-k'

Missed removing of no longer availabe versions in the
runTests.sh help text is done as side cleanup.

Example commands:

> Build/Scripts/runTests.sh -s functional -d mariadb -i 10.6
> Build/Scripts/runTests.sh -s functional -d mariadb -i 10.7
> Build/Scripts/runTests.sh -s functional -d postgres -k 14

Resolves: #97464
Releases: main, 11.5
Change-Id: I096905c49979395f6b53e40edd692f690dadbfe4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74383


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent 8c1cf639
......@@ -133,25 +133,28 @@ Options:
- mysql: use MySQL server
- postgres: use postgres
-i <10.1|10.2|10.3|10.4|10.5>
-i <10.3|10.4|10.5|10.6|10.7>
Only with -d mariadb
Specifies on which version of mariadb tests are performed
- 10.3 (default)
- 10.4
- 10.5
- 10.6
- 10.7
-j <8.0>
Only with -d mysql
Specifies on which version of mysql tests are performed
- 8.0 (default)
-k <10|11|12|13>
-k <10|11|12|13|14>
Only with -d postgres
Specifies on which version of postgres tests are performed
- 10 (default)
- 11
- 12
-13
- 13
- 14
-c <chunk/numberOfChunks>
Only with -s functional|acceptance
......@@ -312,7 +315,7 @@ while getopts ":a:s:c:d:i:j:k:p:e:xy:o:nhuv" OPT; do
;;
i)
MARIADB_VERSION=${OPTARG}
if ! [[ ${MARIADB_VERSION} =~ ^(10.3|10.4|10.5)$ ]]; then
if ! [[ ${MARIADB_VERSION} =~ ^(10.3|10.4|10.5|10.6|10.7)$ ]]; then
INVALID_OPTIONS+=("${OPTARG}")
fi
;;
......@@ -324,7 +327,7 @@ while getopts ":a:s:c:d:i:j:k:p:e:xy:o:nhuv" OPT; do
;;
k)
POSTGRES_VERSION=${OPTARG}
if ! [[ ${POSTGRES_VERSION} =~ ^(10|11|12|13)$ ]]; then
if ! [[ ${POSTGRES_VERSION} =~ ^(10|11|12|13|14)$ ]]; then
INVALID_OPTIONS+=("${OPTARG}")
fi
;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment