diff options
Diffstat (limited to 'tests/generate-command.bats')
| -rw-r--r-- | tests/generate-command.bats | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/generate-command.bats b/tests/generate-command.bats index 780c963..f078946 100644 --- a/tests/generate-command.bats +++ b/tests/generate-command.bats @@ -2,4 +2,16 @@ run ../sway-launcher-desktop.sh generate-command data/firefox.desktop [ "$status" -eq 0 ] [[ "$output" == '/usr/lib/firefox/firefox' ]] +} + +@test "Exec command is properly generated from htop desktop file" { + run ../sway-launcher-desktop.sh generate-command data/htop.desktop + [ "$status" -eq 0 ] + [[ "$output" == 'termite -e htop' ]] +} + +@test "Exec command is properly generated from minecraft-launcher desktop file" { + run ../sway-launcher-desktop.sh generate-command data/minecraft-launcher.desktop + [ "$status" -eq 0 ] + [[ "$output" == 'cd /opt/minecraft-launcher/ && env GDK_BACKEND=x11 /opt/minecraft-launcher/minecraft-launcher' ]] }
\ No newline at end of file |
