diff options
| author | Moritz Meißelbach <m.meisselbach@inpsyde.com> | 2019-10-24 18:09:23 +0200 |
|---|---|---|
| committer | Moritz Meißelbach <m.meisselbach@inpsyde.com> | 2019-10-24 18:09:23 +0200 |
| commit | 2a4c9971ad00ede63e9f964d21745b108889b0b8 (patch) | |
| tree | bd83378b4aad1f0baf5e50b8695763e0c4f3c7dd /tests | |
| parent | c5328b227e2b8ba81254acf7ee820f098a287c60 (diff) | |
| download | sway-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')
| -rw-r--r-- | tests/generate-command.bats | 5 |
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 |
