From 2a4c9971ad00ede63e9f964d21745b108889b0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Thu, 24 Oct 2019 18:09:23 +0200 Subject: Put command extraction in separate command that can be run (and tested) from the outside --- tests/generate-command.bats | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/generate-command.bats (limited to 'tests') 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 -- cgit v1.2.3