From 4a62215c842e61efef31b1f2b3e02af88e12a942 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 9 Jun 2016 12:10:33 +0200 Subject: tests: fix for non-ncurses version Signed-off-by: Karel Zak --- tests/functions.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/functions.sh') 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 +} + -- cgit v1.2.3-55-g7522