diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-08 04:54:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:56 -0500 |
commit | 77d27a46356ec8df87831b27e09575d27d386c79 (patch) | |
tree | 3052f7362814e049e871d7a4c0ca7e8d5a7bdd7b /source4 | |
parent | c062b12fbab7807f7c5ce7eabb664ea30fc3dd93 (diff) | |
download | samba-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)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/tests/test_pidl.sh | 10 |
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 |