From 754d71bfcfdc6fb74ad4c205fb83712cfef1ef2a Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 29 Nov 2024 21:00:52 +0100 Subject: tests(tests/yambar): Init --- tests/by-name/ya/yambar/test.desc | 11 +++++++++++ tests/by-name/ya/yambar/test.nix | 24 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tests/by-name/ya/yambar/test.desc create mode 100644 tests/by-name/ya/yambar/test.nix (limited to 'tests') 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"; +} -- cgit 1.4.1