about summary refs log tree commit diff stats
path: root/tests/by-name/ya
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-29 21:00:52 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-29 21:00:52 +0100
commit754d71bfcfdc6fb74ad4c205fb83712cfef1ef2a (patch)
treea54e2a61d2b26c326d62ac443622810b78fa9cf9 /tests/by-name/ya
parentfix(pkgs/description): Remove (diff)
downloadnixos-config-754d71bfcfdc6fb74ad4c205fb83712cfef1ef2a.tar.gz
nixos-config-754d71bfcfdc6fb74ad4c205fb83712cfef1ef2a.zip
tests(tests/yambar): Init
Diffstat (limited to 'tests/by-name/ya')
-rw-r--r--tests/by-name/ya/yambar/test.desc11
-rw-r--r--tests/by-name/ya/yambar/test.nix24
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/by-name/ya/yambar/test.desc b/tests/by-name/ya/yambar/test.desc
new file mode 100644
index 00000000..cc0aafd2
--- /dev/null
+++ b/tests/by-name/ya/yambar/test.desc
@@ -0,0 +1,11 @@
+# Give everything time to start up
+Sleep 2
+
+Type yambar --validate && echo "SUCCESS"
+Sleep 1
+Type Enter
+Sleep 5
+
+Expect ^SUCCESS$
+
+# vim: ft=tape
diff --git a/tests/by-name/ya/yambar/test.nix b/tests/by-name/ya/yambar/test.nix
new file mode 100644
index 00000000..1f2c1e70
--- /dev/null
+++ b/tests/by-name/ya/yambar/test.nix
@@ -0,0 +1,24 @@
+{mkTest, ...}:
+mkTest {
+  name = "yambar";
+
+  configuration = {
+    imports = [
+      ../../../../modules/by-name/ya/yambar/module.nix
+      ../../../../modules/by-name/ni/nixpkgs/module.nix
+    ];
+    config.soispha = {
+      programs.yambar.enable = true;
+      nixpkgs = {
+        enable = true;
+        systemName = "x86_64-linux";
+      };
+    };
+  };
+
+  testData = {};
+
+  description = ./test.desc;
+
+  hash = "0c590d1bb450b0bc591565b6f4d970e7e7d4e13f8dc47108cf842d7ceb7ed93e";
+}