dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
22a545
From 68ab6d9691e667f89f72bc7eb39a5300b2f6cbaf Mon Sep 17 00:00:00 2001
22a545
From: Karel Zak <kzak@redhat.com>
22a545
Date: Tue, 5 Mar 2019 13:56:45 +0100
22a545
Subject: [PATCH] tests: add missing program checks
22a545
22a545
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1681062
22a545
Signed-off-by: Karel Zak <kzak@redhat.com>
22a545
---
22a545
 tests/ts/cal/bigyear    | 2 +-
22a545
 tests/ts/cal/month      | 2 +-
22a545
 tests/ts/cal/sep1752    | 2 +-
22a545
 tests/ts/misc/mbsencode | 2 ++
22a545
 tests/ts/misc/strtosize | 2 ++
22a545
 5 files changed, 7 insertions(+), 3 deletions(-)
22a545
22a545
diff --git a/tests/ts/cal/bigyear b/tests/ts/cal/bigyear
22a545
index d205c3afd..34139fd27 100755
22a545
--- a/tests/ts/cal/bigyear
22a545
+++ b/tests/ts/cal/bigyear
22a545
@@ -18,7 +18,7 @@ TS_DESC="Year 2147483646"
22a545
 . $TS_TOPDIR/functions.sh
22a545
 ts_init "$*"
22a545
 
22a545
-ts_check_test_command "$TS_CMD_CAL"
22a545
+ts_check_test_command "$TS_HELPER_CAL"
22a545
 
22a545
 export TERM=linux
22a545
 
22a545
diff --git a/tests/ts/cal/month b/tests/ts/cal/month
22a545
index 9794e90c0..37996acae 100755
22a545
--- a/tests/ts/cal/month
22a545
+++ b/tests/ts/cal/month
22a545
@@ -22,7 +22,7 @@ TS_DESC="month"
22a545
 . $TS_TOPDIR/functions.sh
22a545
 ts_init "$*"
22a545
 
22a545
-ts_check_test_command "$TS_CMD_CAL"
22a545
+ts_check_test_command "$TS_HELPER_CAL"
22a545
 
22a545
 export TERM=linux
22a545
 
22a545
diff --git a/tests/ts/cal/sep1752 b/tests/ts/cal/sep1752
22a545
index 3128261cd..41c30d40e 100755
22a545
--- a/tests/ts/cal/sep1752
22a545
+++ b/tests/ts/cal/sep1752
22a545
@@ -18,7 +18,7 @@ TS_DESC="September 1752"
22a545
 . $TS_TOPDIR/functions.sh
22a545
 ts_init "$*"
22a545
 
22a545
-ts_check_test_command "$TS_CMD_CAL"
22a545
+ts_check_test_command "$TS_HELPER_CAL"
22a545
 
22a545
 export TERM=linux
22a545
 
22a545
diff --git a/tests/ts/misc/mbsencode b/tests/ts/misc/mbsencode
22a545
index 405d34c56..139148259 100755
22a545
--- a/tests/ts/misc/mbsencode
22a545
+++ b/tests/ts/misc/mbsencode
22a545
@@ -22,6 +22,8 @@ TS_DESC="mbsencode"
22a545
 . $TS_TOPDIR/functions.sh
22a545
 ts_init "$*"
22a545
 
22a545
+ts_check_test_command "$TS_HELPER_MBSENCODE"
22a545
+
22a545
 # These test may fail on some machines (locales, other libc...)
22a545
 TS_KNOWN_FAIL="yes"
22a545
 
22a545
diff --git a/tests/ts/misc/strtosize b/tests/ts/misc/strtosize
22a545
index 68b3b8bab..a5914a939 100755
22a545
--- a/tests/ts/misc/strtosize
22a545
+++ b/tests/ts/misc/strtosize
22a545
@@ -21,6 +21,8 @@ TS_DESC="strtosize"
22a545
 . $TS_TOPDIR/functions.sh
22a545
 ts_init "$*"
22a545
 
22a545
+ts_check_test_command "$TS_HELPER_STRUTILS"
22a545
+
22a545
 $TS_HELPER_STRUTILS --size -1 >> $TS_OUTPUT 2>&1
22a545
 $TS_HELPER_STRUTILS --size 0 >> $TS_OUTPUT 2>&1
22a545
 $TS_HELPER_STRUTILS --size 1 >> $TS_OUTPUT 2>&1
22a545
-- 
22a545
2.20.1
22a545