aboutsummaryrefslogtreecommitdiffstats
path: root/tests/generate-command.bats
diff options
context:
space:
mode:
authorMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-10-24 18:09:23 +0200
committerMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-10-24 18:09:23 +0200
commit2a4c9971ad00ede63e9f964d21745b108889b0b8 (patch)
treebd83378b4aad1f0baf5e50b8695763e0c4f3c7dd /tests/generate-command.bats
parentc5328b227e2b8ba81254acf7ee820f098a287c60 (diff)
downloadsway-launcher-desktop-2a4c9971ad00ede63e9f964d21745b108889b0b8.tar.gz
sway-launcher-desktop-2a4c9971ad00ede63e9f964d21745b108889b0b8.zip
Put command extraction in separate command that can be run (and tested) from the outside
Diffstat (limited to 'tests/generate-command.bats')
-rw-r--r--tests/generate-command.bats5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/generate-command.bats b/tests/generate-command.bats
new file mode 100644
index 0000000..780c963
--- /dev/null
+++ b/tests/generate-command.bats
@@ -0,0 +1,5 @@
+@test "Exec command is properly extracted from Firefox desktop file" {
+ run ../sway-launcher-desktop.sh generate-command data/firefox.desktop
+ [ "$status" -eq 0 ]
+ [[ "$output" == '/usr/lib/firefox/firefox' ]]
+} \ No newline at end of file