aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wallp.bats20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/wallp.bats b/tests/wallp.bats
index e809c13..b78dc35 100644
--- a/tests/wallp.bats
+++ b/tests/wallp.bats
@@ -278,6 +278,26 @@ EOF
[[ "$output" == *"Usage"* ]]
}
+@test "stdout help has no pango markup tags" {
+ unset WAYLAND_DISPLAY
+ run show_help
+ [[ "$output" != *"<b>"* ]]
+ [[ "$output" != *"<tt>"* ]]
+ [[ "$output" == *"Usage"* ]]
+}
+
+@test "qarma help uses pango markup" {
+ export WAYLAND_DISPLAY="wayland-0"
+ cat > "$STUB_DIR/qarma" <<EOF
+#!/bin/bash
+echo "qarma \$*" >> "$TMP_HOME/calls.log"
+exit 0
+EOF
+ chmod +x "$STUB_DIR/qarma"
+ show_help
+ grep -q "<b>" "$HOME/calls.log"
+}
+
@test "bootstrap on missing conf exits zero without setting wallpaper" {
unset WAYLAND_DISPLAY
run main --restore