summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-12-01 06:01:22 +0000
committerGitHub <noreply@github.com>2022-12-01 06:01:22 +0000
commit7ea400487909270319b116c8503638cd9255c40f (patch)
tree198a063662582f4fc301bbdd7c7a693eb3047ea6 /nixos
parentdc3436a49962618fee1e48a43ff77cead0b7240f (diff)
parent38e591dd05ffc8bdf79dc752ba78b05e370416fa (diff)
Merge master into staging-next
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/freenet.nix19
2 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 726884d7cd9c..f97d7b184af8 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -213,6 +213,7 @@ in {
fluentd = handleTest ./fluentd.nix {};
fluidd = handleTest ./fluidd.nix {};
fontconfig-default-fonts = handleTest ./fontconfig-default-fonts.nix {};
+ freenet = handleTest ./freenet.nix {};
freeswitch = handleTest ./freeswitch.nix {};
freshrss = handleTest ./freshrss.nix {};
frr = handleTest ./frr.nix {};
diff --git a/nixos/tests/freenet.nix b/nixos/tests/freenet.nix
new file mode 100644
index 000000000000..96dbb4caa129
--- /dev/null
+++ b/nixos/tests/freenet.nix
@@ -0,0 +1,19 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+ name = "freenet";
+ meta = with pkgs.lib.maintainers; {
+ maintainers = [ nagy ];
+ };
+
+ nodes = {
+ machine = { ... }: {
+ services.freenet.enable = true;
+ };
+ };
+
+ testScript = ''
+ machine.wait_for_unit("freenet.service")
+ machine.wait_for_open_port(8888)
+ machine.wait_until_succeeds("curl -sfL http://localhost:8888/ | grep Freenet")
+ machine.succeed("systemctl stop freenet")
+ '';
+})