1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-23 20:23:50 +03:00
Commit Graph

123 Commits

Author SHA1 Message Date
Jelmer Vernooij
d1aa25249d Add test for INCLUDE command. 2008-02-19 02:02:48 +01:00
Jelmer Vernooij
aea5042636 Add simple test for ETT_FIELD. 2008-02-13 02:28:41 +01:00
Jelmer Vernooij
9a4b9facc8 Fix test count after pointer_default_top() removal. 2008-02-09 16:25:34 +01:00
Stefan Metzmacher
d7970d7032 pidl/NDR: fix handling of multilevel pointers in function elements
The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
aa8518521b pidl: get the pointer types correct when an element has multiple pointers
Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
145d6c8ea0 pidl: remove 'pointer_default_top()' support
metze
2008-02-04 18:37:09 +01:00
Stefan Metzmacher
0bcc8e53d1 pidl: revert changes it didn't want to push...sorry!
8ebf16c074 Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
6fcf2456d0 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
0569139ca2 LOOKS OK... pidl: get the pointer types correct when an element has multiple pointe
rs
13afc89a87 CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
29c104944b CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
3369015f5d CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a f
unction

metze
2008-02-02 11:13:03 +01:00
Stefan Metzmacher
6fcf2456d0 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
2008-02-01 23:15:16 +01:00
Stefan Metzmacher
0569139ca2 LOOKS OK... pidl: get the pointer types correct when an element has multiple pointers
Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
2008-02-01 22:36:05 +01:00
Stefan Metzmacher
ab2e1394d0 pidl: be consistent and always ask pkg-config only for 'ndr'
metze
2008-01-30 20:25:40 +01:00
Jelmer Vernooij
5b2ea43ed8 pidl: Add simple test for ServerNDR. 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
0e03694830 pidl: Fix imported function for ServerNDR and add test to make sure it doesn't regress again. 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
9aeb7f31b0 pidl: Move Generate*Env functions to Parse::Pidl::Samba4::Header because they only work with the structures generated by that file. 2008-01-14 19:53:05 +01:00
Jelmer Vernooij
1fe5c1ad07 pidl: Avoid accidently filling in empty body for types without body. 2008-01-13 00:05:24 +01:00
Jelmer Vernooij
4f4dfa6042 pidl/ejs: Fix bug that filled in the body for types without body. 2008-01-12 23:38:05 +01:00
Jelmer Vernooij
893f4102c9 pidl: Add function for determining whether a type has a body. 2008-01-12 23:10:28 +01:00
Jelmer Vernooij
e44ee3e60a pidl: Add more parsing tests. 2008-01-12 21:37:46 +01:00
Jelmer Vernooij
254bf85c2e pidl: Remove declare tests, add more tests for typedef. 2008-01-12 21:21:14 +01:00
Jelmer Vernooij
ce40890ef0 pidl: Move tests for the CUtil module to a separate file. 2008-01-12 21:14:44 +01:00
Jelmer Vernooij
bd4ce069b4 pidl: Fix samba3-cli test after Günthers formatting fixes. 2008-01-10 20:38:14 +01:00
Jelmer Vernooij
bc643f1014 r26444: Fix pidl tests. 2007-12-21 05:50:12 +01:00
Jelmer Vernooij
6017b16f50 r26262: Add test for WERROR return code handling for Samba 3 client code. 2007-12-21 05:47:36 +01:00
Stefan Metzmacher
7106f21de8 r25915: ndr/pidl: change NTSTAUS into enum ndr_err_code (pidl code)
Samba4/NDR/Parser.pm
Samba4/NDR/Server.pm
Samba3/ServerNDR.pm
tests/

metze
2007-12-21 05:44:54 +01:00
Stefan Metzmacher
cae48a1953 r25795: whitespace cleanup...
metze
2007-12-21 05:44:02 +01:00
Stefan Metzmacher
cadb1cc743 r25768: pidl: NT_STATUS_IS_ERR() is NOT the same as !NT_STATUS_IS_OK()
Everything but success should be handled as error in the tests.

metze
2007-12-21 05:43:51 +01:00
Stefan Metzmacher
299e74314c r25767: pidl: make it easier to debug errors in pidl tests
we now print the C program that we tried to compile

metze
2007-12-21 05:43:50 +01:00
Stefan Metzmacher
34af31cfb3 r25766: pidl: fix bugs in ndr_tagtype tests found by compiler warnings
metze
2007-12-21 05:43:50 +01:00
Stefan Metzmacher
3accc840be r25765: pidl: fix compiler warning in ndr_align test
metze
2007-12-21 05:43:49 +01:00
Jelmer Vernooij
3c2d06d8fc r25453: Fix include for NTSTATUS. 2007-10-10 15:07:38 -05:00
Jelmer Vernooij
9e804e0c21 r25185: Check that can_contain_deferred returns true if one of the members of a type can contain deferred data. 2007-10-10 15:06:47 -05:00
Jelmer Vernooij
1afc7dd4d3 r25166: Simplify can_contain_deferred and add tests for it. 2007-10-10 15:06:45 -05:00
Jelmer Vernooij
6890a01dbf r24816: Move the rest of the contents of core.h to more appropriate places.
include/ now only contains build system related headers, all other headers are
now near the source code they're related to.
2007-10-10 15:03:15 -05:00
Jelmer Vernooij
30c1de30bb r24815: Support cpp_quote(). 2007-10-10 15:03:14 -05:00
Jelmer Vernooij
ff6684adfd r24812: Fix headers for external users. 2007-10-10 15:03:13 -05:00
Stefan Metzmacher
9b59534a14 r24592: pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions

metze
2007-10-10 15:02:22 -05:00
Stefan Metzmacher
f874eca5da r24560: rename some DCERPC_ prefixes into NDR_
metze
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
5f1f50cd27 r24493: - it turns out that
foreach my $e (@{$union->{ELEMENTS}}) {
  changes $union->{ELEMENTS} from undef into an empty array.
  this removes the difference between
  struct foo { }; and struct foo;
  So we need to explicit return before.
- we should return the same element for layout for
  structs and unions with no elements.
- fix the testsuite to match

metze
2007-10-10 15:02:01 -05:00
Stefan Metzmacher
3cbbddb94c r24492: Parse::Pidl::Samba4::Header::Parse() now takes an $ndr tree
not the $pidl tree anymore.

metze
2007-10-10 15:02:00 -05:00
Stefan Metzmacher
91fb099b3d r24447: fix samba3-cli pidl tests
metze
2007-10-10 15:01:51 -05:00
Andrew Bartlett
d2fba8faf0 r23677: When I removed data_blob_equal, I clearly didn't test the PIDL code.
Fix these to use the new data_blob_cmp()

Andrew Bartlett
2007-10-10 14:58:58 -05:00
Stefan Metzmacher
65ed391729 r23071: print the command on failure only
metze
2007-10-10 14:52:48 -05:00
Stefan Metzmacher
3f28a19ea1 r23069: print out the command, to find out the problem on host 'tridge'
metze
2007-10-10 14:52:48 -05:00
Jelmer Vernooij
b81b0d3308 r22520: Fix the TYPE command. 2007-10-10 14:51:37 -05:00
Jelmer Vernooij
d491e60c70 r22462: Fix test suite for ndr parser without using 'our' 2007-10-10 14:51:23 -05:00
Jelmer Vernooij
cf5162ad10 r22457: Fix tests for Samba3 client generator. 2007-10-10 14:51:23 -05:00
Jelmer Vernooij
0375978403 r22456: Merge wireshark and ejs test improvements. 2007-10-10 14:51:22 -05:00
Jelmer Vernooij
2c82aea0d3 r22453: Fix TDR testsuite without using our. 2007-10-10 14:51:22 -05:00
Jelmer Vernooij
7989ee2aa0 r22357: Don't use 'our' 2007-10-10 14:51:06 -05:00
Jelmer Vernooij
f6d9cdb8a8 r21690: Test use of typedef /and/ struct name 2007-10-10 14:49:12 -05:00
Jelmer Vernooij
d65b520f08 r21681: Fix bug in the parsing code that parsed "struct foo;" the same as
"struct foo {};".

Reported by one of the OpenChange folks, thanks!
2007-10-10 14:49:10 -05:00