nixosTests.ferretdb: handleTest -> runTest
This commit is contained in:
parent
a5e74df22d
commit
ab94f9518a
@ -486,7 +486,7 @@ in
|
|||||||
fedimintd = runTest ./fedimintd.nix;
|
fedimintd = runTest ./fedimintd.nix;
|
||||||
fenics = runTest ./fenics.nix;
|
fenics = runTest ./fenics.nix;
|
||||||
ferm = runTest ./ferm.nix;
|
ferm = runTest ./ferm.nix;
|
||||||
ferretdb = handleTest ./ferretdb.nix { };
|
ferretdb = import ./ferretdb.nix { inherit pkgs runTest; };
|
||||||
fider = runTest ./fider.nix;
|
fider = runTest ./fider.nix;
|
||||||
filesender = runTest ./filesender.nix;
|
filesender = runTest ./filesender.nix;
|
||||||
filebrowser = runTest ./filebrowser.nix;
|
filebrowser = runTest ./filebrowser.nix;
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
{
|
{ runTest, pkgs }:
|
||||||
system ? builtins.currentSystem,
|
|
||||||
pkgs ? import ../.. { inherit system; },
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
lib = pkgs.lib;
|
inherit (pkgs) lib;
|
||||||
testScript = ''
|
testScript = ''
|
||||||
machine.start()
|
machine.start()
|
||||||
machine.wait_for_unit("ferretdb.service")
|
machine.wait_for_unit("ferretdb.service")
|
||||||
@ -12,10 +8,8 @@ let
|
|||||||
machine.succeed("mongosh --eval 'use myNewDatabase;' --eval 'db.myCollection.insertOne( { x: 1 } );'")
|
machine.succeed("mongosh --eval 'use myNewDatabase;' --eval 'db.myCollection.insertOne( { x: 1 } );'")
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
with import ../lib/testing-python.nix { inherit system; };
|
|
||||||
{
|
{
|
||||||
|
postgresql = runTest {
|
||||||
postgresql = makeTest {
|
|
||||||
inherit testScript;
|
inherit testScript;
|
||||||
name = "ferretdb-postgresql";
|
name = "ferretdb-postgresql";
|
||||||
meta.maintainers = with lib.maintainers; [ julienmalka ];
|
meta.maintainers = with lib.maintainers; [ julienmalka ];
|
||||||
@ -47,8 +41,7 @@ with import ../lib/testing-python.nix { inherit system; };
|
|||||||
environment.systemPackages = with pkgs; [ mongosh ];
|
environment.systemPackages = with pkgs; [ mongosh ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
sqlite = runTest {
|
||||||
sqlite = makeTest {
|
|
||||||
inherit testScript;
|
inherit testScript;
|
||||||
name = "ferretdb-sqlite";
|
name = "ferretdb-sqlite";
|
||||||
meta.maintainers = with lib.maintainers; [ julienmalka ];
|
meta.maintainers = with lib.maintainers; [ julienmalka ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user