]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: add test for vertical colors
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 15 Feb 2023 18:54:10 +0000 (18:54 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 15 Feb 2023 19:40:25 +0000 (19:40 +0000)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/expected/cal/color-vertical [new file with mode: 0644]
tests/ts/cal/color

diff --git a/tests/expected/cal/color-vertical b/tests/expected/cal/color-vertical
new file mode 100644 (file)
index 0000000..dc6ce6c
--- /dev/null
@@ -0,0 +1,8 @@
+    February 2023      
+Su     5 12 19 26   
+Mo     6 13 20 27   
+Tu     7 14 21 28   
+We  1  8 \e[7m15\e[27m 22      
+Th  2  9 16 23      
+Fr  3 10 17 24      
+Sa  4 11 18 25      
index e6fe375bcd6e8d188c1a76b5fff682eeb11513b9..0ba175fa2a574c2711111c117c442fc5481fa757 100755 (executable)
@@ -76,5 +76,12 @@ fi
 $TS_CMD_CAL --color=always -3 31 12 9999 >> $TS_OUTPUT
 ts_finalize_subtest
 
+ts_init_subtest "vertical"
+if [ "$USETERM" == "yes" ]; then
+       $TS_CMD_CAL --color=always 15 2 2023
+fi
+$TS_CMD_CAL --color=always --vertical 15 2 2023 >> $TS_OUTPUT
+ts_finalize_subtest
+
 
 ts_finalize