summaryrefslogtreecommitdiffstats
path: root/tests/ts/cal
diff options
context:
space:
mode:
authorKarel Zak2016-06-09 12:10:33 +0200
committerKarel Zak2016-06-09 12:10:33 +0200
commit4a62215c842e61efef31b1f2b3e02af88e12a942 (patch)
tree4ba20583d2eb2b6d5351881f5091986f5a6fe78e /tests/ts/cal
parentcal: cleanup non-ncurses build (diff)
downloadkernel-qcow2-util-linux-4a62215c842e61efef31b1f2b3e02af88e12a942.tar.gz
kernel-qcow2-util-linux-4a62215c842e61efef31b1f2b3e02af88e12a942.tar.xz
kernel-qcow2-util-linux-4a62215c842e61efef31b1f2b3e02af88e12a942.zip
tests: fix for non-ncurses version
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/cal')
-rwxr-xr-xtests/ts/cal/color5
-rwxr-xr-xtests/ts/cal/colorw5
-rwxr-xr-xtests/ts/cal/weekarg5
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/ts/cal/color b/tests/ts/cal/color
index 00e9c188a..8a6dfb69c 100755
--- a/tests/ts/cal/color
+++ b/tests/ts/cal/color
@@ -22,6 +22,11 @@ ts_init "$*"
ts_check_test_command "$TS_CMD_CAL"
+has_ncurses=$( ts_has_ncurses_support )
+if [ "$has_ncurses" != "yes" ]; then
+ ts_skip "without-ncurses"
+fi
+
# --color output depends on terminal type
export TERM=linux
diff --git a/tests/ts/cal/colorw b/tests/ts/cal/colorw
index 8e8ba0139..493dd2c51 100755
--- a/tests/ts/cal/colorw
+++ b/tests/ts/cal/colorw
@@ -22,6 +22,11 @@ ts_init "$*"
ts_check_test_command "$TS_CMD_CAL"
+has_ncurses=$( ts_has_ncurses_support )
+if [ "$has_ncurses" != "yes" ]; then
+ ts_skip "without-ncurses"
+fi
+
# --color output depends on terminal type
export TERM=linux
diff --git a/tests/ts/cal/weekarg b/tests/ts/cal/weekarg
index 19f58c100..236baedd5 100755
--- a/tests/ts/cal/weekarg
+++ b/tests/ts/cal/weekarg
@@ -23,6 +23,11 @@ ts_init "$*"
ts_check_test_command "$TS_CMD_CAL"
+has_ncurses=$( ts_has_ncurses_support )
+if [ "$has_ncurses" != "yes" ]; then
+ ts_skip "without-ncurses"
+fi
+
export TERM=linux
USETERM=$( ts_has_option "useterm" "$*" )