mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r24492: Parse::Pidl::Samba4::Header::Parse() now takes an $ndr tree
not the $pidl tree anymore.
metze
(This used to be commit 3cbbddb94c
)
This commit is contained in:
parent
8c9abc4be7
commit
b76b6a1522
@ -48,12 +48,14 @@ sub test_samba4_ndr
|
||||
{
|
||||
my ($name,$idl,$c,$extra) = @_;
|
||||
my $pidl = Parse::Pidl::IDL::parse_string("interface echo { $idl }; ", "<$name>");
|
||||
|
||||
ok(defined($pidl), "($name) parse idl");
|
||||
my $header = Parse::Pidl::Samba4::Header::Parse($pidl);
|
||||
ok(defined($header), "($name) generate generic header");
|
||||
|
||||
my $pndr = Parse::Pidl::NDR::Parse($pidl);
|
||||
ok(defined($pndr), "($name) generate NDR tree");
|
||||
|
||||
my $header = Parse::Pidl::Samba4::Header::Parse($pndr);
|
||||
ok(defined($header), "($name) generate generic header");
|
||||
|
||||
my $generator = new Parse::Pidl::Samba4::NDR::Parser();
|
||||
my ($ndrheader,$ndrparser) = $generator->Parse($pndr, undef, undef);
|
||||
ok(defined($ndrparser), "($name) generate NDR parser");
|
||||
|
@ -11,12 +11,14 @@ use Util;
|
||||
use Parse::Pidl::Util qw(MyDumper);
|
||||
use Parse::Pidl::Samba4::Header;
|
||||
use Parse::Pidl::IDL qw(parse_string);
|
||||
use Parse::Pidl::NDR;
|
||||
|
||||
sub parse_idl($)
|
||||
{
|
||||
my $text = shift;
|
||||
my $idl = Parse::Pidl::IDL::parse_string($text, "nofile");
|
||||
return Parse::Pidl::Samba4::Header::Parse($idl);
|
||||
my $ndr = Parse::Pidl::NDR::Parse($idl);
|
||||
return Parse::Pidl::Samba4::Header::Parse($ndr);
|
||||
}
|
||||
|
||||
like(parse_idl(""), qr/\/\* header auto-generated by pidl \*\/\n/sm, "includes work");
|
||||
|
Loading…
Reference in New Issue
Block a user