From 77d27a46356ec8df87831b27e09575d27d386c79 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 8 Sep 2006 04:54:30 +0000 Subject: r18251: skip pidl tests unless the platform has Test::More (This used to be commit 6c7dd852c05cf131d7def8a8dcff7e98df9ea521) --- source4/script/tests/test_pidl.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source4/script/tests') diff --git a/source4/script/tests/test_pidl.sh b/source4/script/tests/test_pidl.sh index a17e3871fe..d2ebd30169 100755 --- a/source4/script/tests/test_pidl.sh +++ b/source4/script/tests/test_pidl.sh @@ -9,8 +9,12 @@ incdir=`dirname $0` failed=0 -for f in pidl/tests/*.pl; do - testit "$f" $PERL $f || failed=`expr $failed + 1` -done +if $PERL -e 'eval require Test::More;' > /dev/null 2>&1; then + for f in pidl/tests/*.pl; do + testit "$f" $PERL $f || failed=`expr $failed + 1` + done +else + echo "Skipping pidl tests - Test::More not installed" +fi testok $0 $failed -- cgit