summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-08 04:54:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:56 -0500
commit77d27a46356ec8df87831b27e09575d27d386c79 (patch)
tree3052f7362814e049e871d7a4c0ca7e8d5a7bdd7b
parentc062b12fbab7807f7c5ce7eabb664ea30fc3dd93 (diff)
downloadsamba-77d27a46356ec8df87831b27e09575d27d386c79.tar.gz
samba-77d27a46356ec8df87831b27e09575d27d386c79.tar.bz2
samba-77d27a46356ec8df87831b27e09575d27d386c79.zip
r18251: skip pidl tests unless the platform has Test::More
(This used to be commit 6c7dd852c05cf131d7def8a8dcff7e98df9ea521)
-rwxr-xr-xsource4/script/tests/test_pidl.sh10
1 files changed, 7 insertions, 3 deletions
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