From 68ef82aac72c351f6e166b92bbb4573e8bcdbc86 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 Dec 2005 23:32:50 +0000 Subject: r12464: Add simple IDL parsing tests for pidl using the standard perl testing framework (Test::Simple, distributed with perl itself). Run these tests from 'make test' (This used to be commit 975d8816db6697dab828941b69a740e3a0a2c272) --- source4/script/tests/test_pidl.sh | 14 +++++++------- source4/script/tests/tests_all.sh | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'source4/script/tests') diff --git a/source4/script/tests/test_pidl.sh b/source4/script/tests/test_pidl.sh index 9b47317463..6ef2b0ab91 100755 --- a/source4/script/tests/test_pidl.sh +++ b/source4/script/tests/test_pidl.sh @@ -1,8 +1,8 @@ #!/bin/sh -PERL=perl -$PERL -Ibuild/pidl ./build/pidl/tests/ndr_simple.pl -$PERL -Ibuild/pidl ./build/pidl/tests/ndr_align.pl -$PERL -Ibuild/pidl ./build/pidl/tests/ndr_alloc.pl -$PERL -Ibuild/pidl ./build/pidl/tests/ndr_refptr.pl -$PERL -Ibuild/pidl ./build/pidl/tests/ndr_string.pl -$PERL -Ibuild/pidl ./build/pidl/tests/ndr_array.pl +if [ ! -n "$PERL" ] +then + PERL=perl +fi +#$PERL -MExtUtils::Command::MM -e "test_harness()" pidl/tests/*.pl +$PERL -MExtUtils::Command::MM -e "test_harness()" pidl/tests/parse_idl.pl + diff --git a/source4/script/tests/tests_all.sh b/source4/script/tests/tests_all.sh index 5c480e9995..8abebf0dce 100644 --- a/source4/script/tests/tests_all.sh +++ b/source4/script/tests/tests_all.sh @@ -8,3 +8,4 @@ $SRCDIR/script/tests/test_echo.sh $SERVER $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?` $SRCDIR/script/tests/test_posix.sh //$SERVER/tmp $USERNAME $PASSWORD "" || failed=`expr $failed + $?` $SRCDIR/script/tests/test_local.sh || failed=`expr $failed + $?` + $SRCDIR/script/tests/test_pidl.sh || failed=`expr $failed + $?` -- cgit