nixos/tests/mariadb: add check Mroonga storage
This commit is contained in:
parent
f85b19387d
commit
a87a078dbc
1 changed files with 15 additions and 1 deletions
|
@ -98,7 +98,7 @@ import ./../make-test-python.nix ({ pkgs, ...} : {
|
||||||
}];
|
}];
|
||||||
services.mysql.settings = {
|
services.mysql.settings = {
|
||||||
mysqld = {
|
mysqld = {
|
||||||
plugin-load-add = [ "ha_rocksdb.so" ];
|
plugin-load-add = [ "ha_mroonga.so" "ha_rocksdb.so" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.mysql.package = pkgs.mariadb;
|
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"
|
"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
|
# Check if RocksDB plugin works
|
||||||
mariadb.succeed(
|
mariadb.succeed(
|
||||||
"echo 'use testdb; create table rocksdb (test_id INT, PRIMARY KEY (test_id)) ENGINE = RocksDB;' | sudo -u testuser mysql -u testuser"
|
"echo 'use testdb; create table rocksdb (test_id INT, PRIMARY KEY (test_id)) ENGINE = RocksDB;' | sudo -u testuser mysql -u testuser"
|
||||||
|
|
Loading…
Reference in a new issue