Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsmit committed Nov 6, 2020
1 parent e70ddc6 commit 4f91b2f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/functional-tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,29 @@ function geometry {
keypress
}

function progress_bar {
killall dunst
../../dunst -config dunstrc.default &
../../dunstify -h int:value:0 -a "dunst tester" -u c "Progress bar 0%: "
../../dunstify -h int:value:33 -a "dunst tester" -u c "Progress bar 33%: "
../../dunstify -h int:value:66 -a "dunst tester" -u c "Progress bar 66%: "
../../dunstify -h int:value:100 -a "dunst tester" -u c "Progress bar 100%: "
keypress
killall dunst
../../dunst -config dunstrc.default &
../../dunstify -h int:value:33 -a "dunst tester" -u l "Low priority: "
../../dunstify -h int:value:33 -a "dunst tester" -u n "Normal priority: "
../../dunstify -h int:value:33 -a "dunst tester" -u c "Critical priority: "
keypress
}

if [ -n "$1" ]; then
while [ -n "$1" ]; do
$1
shift
done
else
progress_bar
geometry
corners
show_age
Expand Down

0 comments on commit 4f91b2f

Please sign in to comment.