diff options
author | Karel Zak | 2016-06-09 12:10:33 +0200 |
---|---|---|
committer | Karel Zak | 2016-06-09 12:10:33 +0200 |
commit | 4a62215c842e61efef31b1f2b3e02af88e12a942 (patch) | |
tree | 4ba20583d2eb2b6d5351881f5091986f5a6fe78e /tests/functions.sh | |
parent | cal: cleanup non-ncurses build (diff) | |
download | kernel-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/functions.sh')
-rw-r--r-- | tests/functions.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh index 19e8a46b8..db5f536c6 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -729,3 +729,12 @@ function ts_has_mtab_support { fi } +function ts_has_ncurses_support { + grep -q '#define HAVE_LIBNCURSES' ${top_builddir}/config.h + if [ $? == 0 ]; then + echo "yes" + else + echo "no" + fi +} + |