aboutsummaryrefslogtreecommitdiffstats
path: root/tests/generate-command.bats
diff options
context:
space:
mode:
authorMoritz Meißelbach <arbelzapf@gmail.com>2020-02-06 23:09:03 +0100
committerGitHub <noreply@github.com>2020-02-06 23:09:03 +0100
commit80b9323b479740782cf7ba11a762f5e8ee5ef03e (patch)
treec659c5442e01f5aaa61c85e6a5a8570ac1f5269b /tests/generate-command.bats
parentc1632f9797936a46587bf959a8be07c23768ca13 (diff)
parent2f0c53eac739a2a6dbf574cebb543c932f7dc162 (diff)
downloadsway-launcher-desktop-80b9323b479740782cf7ba11a762f5e8ee5ef03e.tar.gz
sway-launcher-desktop-80b9323b479740782cf7ba11a762f5e8ee5ef03e.zip
Merge pull request #18 from Biont/xdg_autostart
Implement XDG Autostart specification
Diffstat (limited to 'tests/generate-command.bats')
-rw-r--r--tests/generate-command.bats9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/generate-command.bats b/tests/generate-command.bats
index dfe2487..1dccc13 100644
--- a/tests/generate-command.bats
+++ b/tests/generate-command.bats
@@ -1,3 +1,7 @@
+setup() {
+ export TERMINAL_COMMAND='urxvt -e'
+}
+
@test "Exec command is properly extracted from Firefox desktop file" {
run ../sway-launcher-desktop.sh generate-command data/desktop-files/0/applications/firefox.desktop
[ "$status" -eq 0 ]
@@ -6,8 +10,11 @@
@test "Exec command is properly generated from htop desktop file" {
run ../sway-launcher-desktop.sh generate-command data/desktop-files/0/applications/htop.desktop
+ expected='urxvt -e htop'
+ echo "EXPECTED: $expected"
+ echo "ACTUAL: $output"
[ "$status" -eq 0 ]
- [[ "$output" == 'urxvt -e htop' ]]
+ [[ "$output" == $expected ]]
}
@test "Exec command is properly generated from minecraft-launcher desktop file" {