summaryrefslogtreecommitdiffstats
path: root/tests/ts/cal
diff options
context:
space:
mode:
authorSami Kerola2014-02-16 16:22:56 +0100
committerKarel Zak2014-03-07 11:52:57 +0100
commit2f791546395cb43f3f93de6c095c812c7cd5237f (patch)
tree0fe025270e9c5acbb15ef7d433c553a72fdfdf1e /tests/ts/cal
parenttools: make config-gen to require build target argument (diff)
downloadkernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.gz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.xz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.zip
tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/cal')
-rwxr-xr-xtests/ts/cal/1m2
-rwxr-xr-xtests/ts/cal/1mw2
-rwxr-xr-xtests/ts/cal/3m2
-rwxr-xr-xtests/ts/cal/3mw2
-rwxr-xr-xtests/ts/cal/bigyear2
-rwxr-xr-xtests/ts/cal/bigyearw2
-rwxr-xr-xtests/ts/cal/color2
-rwxr-xr-xtests/ts/cal/colorw2
-rwxr-xr-xtests/ts/cal/sep17522
-rwxr-xr-xtests/ts/cal/sep1752w2
-rwxr-xr-xtests/ts/cal/weekarg2
-rwxr-xr-xtests/ts/cal/weeknum4
-rwxr-xr-xtests/ts/cal/year2
-rwxr-xr-xtests/ts/cal/yearw2
14 files changed, 29 insertions, 1 deletions
diff --git a/tests/ts/cal/1m b/tests/ts/cal/1m
index ddb0129aa..295758aad 100755
--- a/tests/ts/cal/1m
+++ b/tests/ts/cal/1m
@@ -22,6 +22,8 @@ TS_DESC="1 month"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/1mw b/tests/ts/cal/1mw
index c258564a4..66649487a 100755
--- a/tests/ts/cal/1mw
+++ b/tests/ts/cal/1mw
@@ -22,6 +22,8 @@ TS_DESC="1 month with week numbers"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/3m b/tests/ts/cal/3m
index 64e7c4e38..50f284ec2 100755
--- a/tests/ts/cal/3m
+++ b/tests/ts/cal/3m
@@ -21,6 +21,8 @@ TS_DESC="3 months"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/3mw b/tests/ts/cal/3mw
index 934cfdc0a..5ea951e49 100755
--- a/tests/ts/cal/3mw
+++ b/tests/ts/cal/3mw
@@ -21,6 +21,8 @@ TS_DESC="3 months with week numbers"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
USETERM=$( ts_has_option "useterm" "$*" )
diff --git a/tests/ts/cal/bigyear b/tests/ts/cal/bigyear
index a01a9defc..b5e415ca1 100755
--- a/tests/ts/cal/bigyear
+++ b/tests/ts/cal/bigyear
@@ -18,6 +18,8 @@ TS_DESC="Year 2147483646"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/bigyearw b/tests/ts/cal/bigyearw
index a0220bfe3..75a18ddee 100755
--- a/tests/ts/cal/bigyearw
+++ b/tests/ts/cal/bigyearw
@@ -18,6 +18,8 @@ TS_DESC="Year 2147483646 with week numbers"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/color b/tests/ts/cal/color
index 67883a2eb..44e9381e2 100755
--- a/tests/ts/cal/color
+++ b/tests/ts/cal/color
@@ -20,6 +20,8 @@ TS_DESC="color"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
# --color output depends on terminal type
export TERM=linux
diff --git a/tests/ts/cal/colorw b/tests/ts/cal/colorw
index 8b43461d5..0092e133e 100755
--- a/tests/ts/cal/colorw
+++ b/tests/ts/cal/colorw
@@ -20,6 +20,8 @@ TS_DESC="color with week numbers"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
# --color output depends on terminal type
export TERM=linux
diff --git a/tests/ts/cal/sep1752 b/tests/ts/cal/sep1752
index 4e7fafc49..fa57b9b8b 100755
--- a/tests/ts/cal/sep1752
+++ b/tests/ts/cal/sep1752
@@ -18,6 +18,8 @@ TS_DESC="September 1752"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/sep1752w b/tests/ts/cal/sep1752w
index bc792143c..b229e8369 100755
--- a/tests/ts/cal/sep1752w
+++ b/tests/ts/cal/sep1752w
@@ -18,6 +18,8 @@ TS_DESC="September 1752 with week numbers"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/weekarg b/tests/ts/cal/weekarg
index dc500ac19..a7987051c 100755
--- a/tests/ts/cal/weekarg
+++ b/tests/ts/cal/weekarg
@@ -21,6 +21,8 @@ TS_DESC="week number given as argument"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/weeknum b/tests/ts/cal/weeknum
index a3de709c9..0bea00de1 100755
--- a/tests/ts/cal/weeknum
+++ b/tests/ts/cal/weeknum
@@ -21,6 +21,8 @@ TS_DESC="week number corner cases"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
@@ -29,7 +31,7 @@ USETERM=$( ts_has_option "useterm" "$*" )
[ "$USETERM" == "yes" ] && TS_VERBOSE="yes"
ts_log ""
-for x in 2001 2002 2003 2009 2010 2011 2012 ; do
+for x in 2001 2002 2003 2009 2010 2011 2012 ; do
MYTIME="1 $x"
ts_log "Gregorian - Monday-based week with week numbers - year $x"
diff --git a/tests/ts/cal/year b/tests/ts/cal/year
index f6b7cc7d2..1204b5ffb 100755
--- a/tests/ts/cal/year
+++ b/tests/ts/cal/year
@@ -21,6 +21,8 @@ TS_DESC="year"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux
diff --git a/tests/ts/cal/yearw b/tests/ts/cal/yearw
index 9dd673cb7..c05b1c2b7 100755
--- a/tests/ts/cal/yearw
+++ b/tests/ts/cal/yearw
@@ -21,6 +21,8 @@ TS_DESC="year with week numbers"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_CAL"
+
set -o pipefail
export TERM=linux