mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
parent
e045203e0e
commit
8e3f874502
2 changed files with 62 additions and 66 deletions
|
@ -167,7 +167,7 @@ in {
|
||||||
amazon-ssm-agent = runTest ./amazon-ssm-agent.nix;
|
amazon-ssm-agent = runTest ./amazon-ssm-agent.nix;
|
||||||
amd-sev = runTest ./amd-sev.nix;
|
amd-sev = runTest ./amd-sev.nix;
|
||||||
angie-api = runTest ./angie-api.nix;
|
angie-api = runTest ./angie-api.nix;
|
||||||
anki-sync-server = handleTest ./anki-sync-server.nix {};
|
anki-sync-server = runTest ./anki-sync-server.nix;
|
||||||
anuko-time-tracker = handleTest ./anuko-time-tracker.nix {};
|
anuko-time-tracker = handleTest ./anuko-time-tracker.nix {};
|
||||||
apcupsd = handleTest ./apcupsd.nix {};
|
apcupsd = handleTest ./apcupsd.nix {};
|
||||||
apfs = runTest ./apfs.nix;
|
apfs = runTest ./apfs.nix;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import ./make-test-python.nix (
|
{ pkgs, ... }:
|
||||||
{ pkgs, ... }:
|
let
|
||||||
let
|
|
||||||
ankiSyncTest = pkgs.writeScript "anki-sync-test.py" ''
|
ankiSyncTest = pkgs.writeScript "anki-sync-test.py" ''
|
||||||
#!${pkgs.python3}/bin/python
|
#!${pkgs.python3}/bin/python
|
||||||
|
|
||||||
|
@ -35,16 +34,14 @@ import ./make-test-python.nix (
|
||||||
# and check we got it?
|
# and check we got it?
|
||||||
'';
|
'';
|
||||||
testPasswordFile = pkgs.writeText "anki-password" "passfilepassword";
|
testPasswordFile = pkgs.writeText "anki-password" "passfilepassword";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = "anki-sync-server";
|
name = "anki-sync-server";
|
||||||
meta = with pkgs.lib.maintainers; {
|
meta = with pkgs.lib.maintainers; {
|
||||||
maintainers = [ martinetd ];
|
maintainers = [ martinetd ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes.machine =
|
nodes.machine = {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
services.anki-sync-server = {
|
services.anki-sync-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
users = [
|
users = [
|
||||||
|
@ -71,5 +68,4 @@ import ./make-test-python.nix (
|
||||||
with subtest("Can sync"):
|
with subtest("Can sync"):
|
||||||
machine.succeed("${ankiSyncTest}")
|
machine.succeed("${ankiSyncTest}")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue