diff options
Diffstat (limited to 'tests/autostart.bats')
| -rw-r--r-- | tests/autostart.bats | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/autostart.bats b/tests/autostart.bats new file mode 100644 index 0000000..0197a30 --- /dev/null +++ b/tests/autostart.bats @@ -0,0 +1,14 @@ +setup() { + export TERMINAL_COMMAND='urxvt -e' + export XDG_CONFIG_HOME=./data/autostart-folders/0 + export XDG_CONFIG_DIRS=./data/autostart-folders/1 +} + +@test "Lists all desktop filenames in autostart directories" { + run ../sway-launcher-desktop.sh list-autostart + echo -e "OUTPUT:\n$output" + [ "$status" -eq 0 ] + [[ ${#lines[@]} == 2 ]] + [[ ${lines[0]} =~ data/autostart-folders/0/autostart/firefox.desktop ]] + [[ ${lines[1]} =~ data/autostart-folders/1/autostart/htop.desktop ]] +}
\ No newline at end of file |
