diff options
| author | Moritz Meißelbach <m.meisselbach@inpsyde.com> | 2021-02-03 07:34:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-03 07:34:45 +0100 |
| commit | fda862a4d5958fa4fbc9668b99339c7a1e584584 (patch) | |
| tree | cfd1e1ca0c60d2c2938746e1b37f04311b98d659 /tests/entries.bats | |
| parent | 232a3f9c00accd03cd3afd2c5f515051e142c74f (diff) | |
| parent | 69a1a43f47b40dc3c6ab0edc59d78e7a690b4a7c (diff) | |
| download | sway-launcher-desktop-fda862a4d5958fa4fbc9668b99339c7a1e584584.tar.gz sway-launcher-desktop-fda862a4d5958fa4fbc9668b99339c7a1e584584.zip | |
Merge pull request #35 from boredland/fix/x-entries
fix: deal with X- entries
Diffstat (limited to 'tests/entries.bats')
| -rwxr-xr-x | tests/entries.bats | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/entries.bats b/tests/entries.bats index dd77fd8..0b50876 100755 --- a/tests/entries.bats +++ b/tests/entries.bats @@ -10,15 +10,24 @@ [[ ${lines[2]} =~ ^data/desktop-files/0/applications/firefox.desktop.*Firefox.*(New Private Window).*new-private-window ]] } +@test "Inkscape desktop entry and all its actions are extracted" { + run ../sway-launcher-desktop.sh entries data/desktop-files/0/applications/org.inkscape.Inkscape.desktop + echo -e "OUTPUT:\n$output" + [ "$status" -eq 0 ] + [[ ${lines[0]} =~ data/desktop-files/0/applications/org.inkscape.Inkscape.desktop ]] + [[ ${lines[0]} =~ ^data/desktop-files/0/applications/org.inkscape.Inkscape.desktop.*Inkscape ]] + [[ ${lines[1]} =~ ^data/desktop-files/0/applications/org.inkscape.Inkscape.desktop.*Inkscape.*(New.*Drawing).* ]] +} + @test "Wildcard expansion works for extraction of desktop files" { run ../sway-launcher-desktop.sh entries data/desktop-files/0/applications/*.desktop [ "$status" -eq 0 ] - [[ ${#lines[@]} == 6 ]] + [[ ${#lines[@]} == 8 ]] } @test "Reoccurring desktop file ids are not parsed twice" { run ../sway-launcher-desktop.sh entries data/desktop-files/**/*.desktop echo "EXPECTED: foo-bar.desktop ACTUAL: $output" [ "$status" -eq 0 ] - [[ ${#lines[@]} == 6 ]] + [[ ${#lines[@]} == 8 ]] } |
