Skip to content
Snippets Groups Projects
Verified Commit 7e1bf2e3 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Updated tests for newer MariaDB version.

parent 0801b110
No related branches found
No related tags found
2 merge requests!31ENH: Update script for outdated dumps.,!30Mariadb 10.11: New reserved keyword
Pipeline #55925 canceled
......@@ -59,23 +59,22 @@ test:
test-dump-update:
pytest dump_updates
# Run tests with a database which is started in a Docker container
# Run tests with a database which is started in a MariaDB Docker container
.PHONY: test-docker
test-docker:
@docker kill caosdb-mysqlserver-test || true
@docker container rm caosdb-mysqlserver-test || true
@docker container rm -v caosdb-mysqlserver-test || true
@docker run --name caosdb-mysqlserver-test -p "3306:3306" \
-e MYSQL_ROOT_PASSWORD="pass-for-test" -d mariadb
-e MYSQL_ROOT_PASSWORD="pass-for-test" -d mariadb:10.11
@sleep 10
MAINPATH=$(realpath tests/docker_env) utils/make_db test --fresh
@docker kill caosdb-mysqlserver-test
@docker container rm caosdb-mysqlserver-test
make test-docker-stop
# if automatic stopping failed
.PHONY: test-docker-stop
test-docker-stop:
docker kill caosdb-mysqlserver-test
docker container rm caosdb-mysqlserver-test
docker container rm -v caosdb-mysqlserver-test
# Compile the standalone documentation
.PHONY: doc
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment