aboutsummaryrefslogtreecommitdiffstats
path: root/tests/entries.bats
diff options
context:
space:
mode:
authorMoritz Meißelbach <arbelzapf@gmail.com>2019-10-24 21:21:27 +0200
committerMoritz Meißelbach <arbelzapf@gmail.com>2019-10-24 21:21:27 +0200
commit71d526589f8e7ad8bf92a8e78c34c7af5e1497cb (patch)
tree1316e5fecd55ed62f3d1f50a41638f775cb91be5 /tests/entries.bats
parentb57166d0687b2ba9e7981dd4a2e4078abe09acc7 (diff)
parent2a4c9971ad00ede63e9f964d21745b108889b0b8 (diff)
downloadsway-launcher-desktop-71d526589f8e7ad8bf92a8e78c34c7af5e1497cb.tar.gz
sway-launcher-desktop-71d526589f8e7ad8bf92a8e78c34c7af5e1497cb.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'tests/entries.bats')
-rw-r--r--tests/entries.bats14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/entries.bats b/tests/entries.bats
new file mode 100644
index 0000000..304dc6a
--- /dev/null
+++ b/tests/entries.bats
@@ -0,0 +1,14 @@
+@test "Firefox desktop entry and all its actions are extracted" {
+ run ../sway-launcher-desktop.sh entries data/firefox.desktop
+ [ "$status" -eq 0 ]
+ [[ ${lines[0]} =~ data/firefox.desktop ]]
+ [[ ${lines[0]} =~ ^data/firefox.desktop.*Firefox ]]
+ [[ ${lines[1]} =~ ^data/firefox.desktop.*Firefox.*(New Window).*new-window ]]
+ [[ ${lines[2]} =~ ^data/firefox.desktop.*Firefox.*(New Private Window).*new-private-window ]]
+}
+
+@test "Wildcard expansion works for extraction of desktop files" {
+ run ../sway-launcher-desktop.sh entries data/*.desktop
+ [ "$status" -eq 0 ]
+ [[ ${#lines[@]} == 5 ]]
+} \ No newline at end of file