diff options
author | Izorkin <izorkin@elven.pw> | 2021-07-04 22:53:15 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2021-07-04 22:53:15 +0300 |
commit | a87a078dbc036694cfa81e68a7451b4f9ea933a0 (patch) | |
tree | 95ec4967ce02fffa1f9d5fb6b8f90a6ff500817d | |
parent | f85b19387dbf58ca54cb93dd070b7d069c12408b (diff) | |
download | nixpkgs-a87a078dbc036694cfa81e68a7451b4f9ea933a0.tar nixpkgs-a87a078dbc036694cfa81e68a7451b4f9ea933a0.tar.gz nixpkgs-a87a078dbc036694cfa81e68a7451b4f9ea933a0.tar.bz2 nixpkgs-a87a078dbc036694cfa81e68a7451b4f9ea933a0.tar.lz nixpkgs-a87a078dbc036694cfa81e68a7451b4f9ea933a0.tar.xz nixpkgs-a87a078dbc036694cfa81e68a7451b4f9ea933a0.tar.zst nixpkgs-a87a078dbc036694cfa81e68a7451b4f9ea933a0.zip |
nixos/tests/mariadb: add check Mroonga storage
-rw-r--r-- | nixos/tests/mysql/mysql.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nixos/tests/mysql/mysql.nix b/nixos/tests/mysql/mysql.nix index c21136416d4..2ec9c3d50a3 100644 --- a/nixos/tests/mysql/mysql.nix +++ b/nixos/tests/mysql/mysql.nix @@ -98,7 +98,7 @@ import ./../make-test-python.nix ({ pkgs, ...} : { }]; services.mysql.settings = { mysqld = { - plugin-load-add = [ "ha_rocksdb.so" ]; + plugin-load-add = [ "ha_mroonga.so" "ha_rocksdb.so" ]; }; }; services.mysql.package = pkgs.mariadb; @@ -172,6 +172,20 @@ import ./../make-test-python.nix ({ pkgs, ...} : { "echo 'use testdb; select test_id from tests;' | sudo -u testuser mysql -u testuser -N | grep 42" ) + # Check if Mroonga plugin works + mariadb.succeed( + "echo 'use testdb; create table mroongadb (test_id INT, PRIMARY KEY (test_id)) ENGINE = Mroonga;' | sudo -u testuser mysql -u testuser" + ) + mariadb.succeed( + "echo 'use testdb; insert into mroongadb values (25);' | sudo -u testuser mysql -u testuser" + ) + mariadb.succeed( + "echo 'use testdb; select test_id from mroongadb;' | sudo -u testuser mysql -u testuser -N | grep 25" + ) + mariadb.succeed( + "echo 'use testdb; drop table mroongadb;' | sudo -u testuser mysql -u testuser" + ) + # Check if RocksDB plugin works mariadb.succeed( "echo 'use testdb; create table rocksdb (test_id INT, PRIMARY KEY (test_id)) ENGINE = RocksDB;' | sudo -u testuser mysql -u testuser" |