mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
fbef5ab82f
I'm currently not maintaining any packages.
25 lines
559 B
Nix
25 lines
559 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "mysql";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ eelco shlevy ];
|
|
};
|
|
|
|
nodes = {
|
|
master =
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
services.mysql.enable = true;
|
|
services.mysql.initialDatabases = [ { name = "testdb"; schema = ./testdb.sql; } ];
|
|
services.mysql.package = pkgs.mysql;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
|
|
$master->waitForUnit("mysql");
|
|
$master->succeed("echo 'use testdb; select * from tests' | mysql -u root -N | grep 4");
|
|
'';
|
|
})
|