diff options
Diffstat (limited to '')
-rw-r--r-- | tests/by-name/ya/yambar/test.desc | 11 | ||||
-rw-r--r-- | tests/by-name/ya/yambar/test.nix | 24 |
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"; +} |