diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-25 03:04:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:43 -0500 |
commit | 7717f180ca2f908e1b3258355520719991215050 (patch) | |
tree | cca55b2debbe63fdf39d6810ad7987af28ffc04a /source4/pidl/tests/ndr_alloc.pl | |
parent | 620d375320e143abcf6775a392f9bde3146f2baa (diff) | |
download | samba-7717f180ca2f908e1b3258355520719991215050.tar.gz samba-7717f180ca2f908e1b3258355520719991215050.tar.bz2 samba-7717f180ca2f908e1b3258355520719991215050.zip |
r12470: Add helper module for pidl tests
Convert other pidl tests to use Test::More and run them from 'make test'
(This used to be commit 3a57d29a62112ab654e290ccc985fba7f67664c5)
Diffstat (limited to 'source4/pidl/tests/ndr_alloc.pl')
-rwxr-xr-x | source4/pidl/tests/ndr_alloc.pl | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source4/pidl/tests/ndr_alloc.pl b/source4/pidl/tests/ndr_alloc.pl index 4786d96971..039826e4ea 100755 --- a/source4/pidl/tests/ndr_alloc.pl +++ b/source4/pidl/tests/ndr_alloc.pl @@ -3,11 +3,15 @@ # (C) 2005 Jelmer Vernooij. Published under the GNU GPL use strict; -use Test::Simple tests => 1; +use Test::More tests => 5 * 8; +use FindBin qw($RealBin); +use lib "$RealBin/../lib"; +use lib "$RealBin"; +use Util qw(test_samba4_ndr); # Check that an outgoing scalar pointer is allocated correctly -Parse::Pidl::Test::test_idl("alloc-scalar", \%settings, +test_samba4_ndr("alloc-scalar", ' typedef struct { uint8 *x; @@ -32,7 +36,7 @@ Parse::Pidl::Test::test_idl("alloc-scalar", \%settings, ); # Check that an outgoing buffer pointer is allocated correctly -Parse::Pidl::Test::test_idl("alloc-buffer", \%settings, +test_samba4_ndr("alloc-buffer", ' typedef struct { uint8 data; } blie; typedef struct { blie *x; } bla; @@ -56,7 +60,7 @@ Parse::Pidl::Test::test_idl("alloc-buffer", \%settings, ); # Check that ref pointers aren't allocated by default -Parse::Pidl::Test::test_idl("ref-noalloc-null", \%settings, +test_samba4_ndr("ref-noalloc-null", ' [public] void TestAlloc([in,ref] uint8 *t); ',' @@ -72,7 +76,7 @@ Parse::Pidl::Test::test_idl("ref-noalloc-null", \%settings, ); # Check that ref pointers aren't allocated by default -Parse::Pidl::Test::test_idl("ref-noalloc", \%settings, +test_samba4_ndr("ref-noalloc", ' [public] void TestAlloc([in,ref] uint8 *t); ',' @@ -92,7 +96,7 @@ Parse::Pidl::Test::test_idl("ref-noalloc", \%settings, ); # Check that an outgoing ref pointer is allocated correctly -Parse::Pidl::Test::test_idl("ref-alloc", \%settings, +test_samba4_ndr("ref-alloc", ' [public] void TestAlloc([in,ref] uint8 *t); ',' |