aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wallp.bats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wallp.bats')
-rw-r--r--tests/wallp.bats22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/wallp.bats b/tests/wallp.bats
index 0ffed89..b5c9ff7 100644
--- a/tests/wallp.bats
+++ b/tests/wallp.bats
@@ -105,3 +105,25 @@ teardown() {
persist_theme "abc"
[ "$(cat "$HOME/.config/wallp/theme")" = "abc" ]
}
+
+@test "output_for maps logical to physical" {
+ CONF_OUTPUT_H="DP-1"; CONF_OUTPUT_V="DP-3"
+ run output_for H
+ [ "$output" = "DP-1" ]
+ run output_for V
+ [ "$output" = "DP-3" ]
+}
+
+@test "wall_file_for returns config paths" {
+ run wall_file_for H
+ [ "$output" = "$HOME/.config/wallp/wall_h" ]
+ run wall_file_for V
+ [ "$output" = "$HOME/.config/wallp/wall_v" ]
+}
+
+@test "pid_file_for returns cache paths" {
+ run pid_file_for H
+ [ "$output" = "$HOME/.cache/wallp/H.pid" ]
+ run pid_file_for V
+ [ "$output" = "$HOME/.cache/wallp/V.pid" ]
+}