1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

tests/ndrdump: Add a test for --hex-input

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Feb 14 13:39:01 CET 2017 on sn-devel-144
This commit is contained in:
Garming Sam 2016-12-09 10:50:38 +13:00 committed by Andrew Bartlett
parent 4940661658
commit 03c4cf5b10
2 changed files with 11 additions and 0 deletions

View File

@ -47,3 +47,7 @@ class NdrDumpTests(BlackboxTestCase):
def test_ndrdump_with_validate(self):
self.check_run("ndrdump --validate samr samr_CreateUser in %s" % (self.data_path("samr-CreateUser-in.dat")))
def test_ndrdump_with_hex(self):
self.check_run("ndrdump dns decode_dns_name_packet in --hex-input %s" %
self.data_path("dns-decode_dns_name_packet-hex.dat"))

View File

@ -0,0 +1,7 @@
[0000] EC EF 28 00 00 01 00 00 00 01 00 00 09 73 61 6D ..(..... .....sam
[0010] 62 61 32 30 30 33 07 65 78 61 6D 70 6C 65 03 63 ba2003.e xample.c
[0020] 6F 6D 00 00 06 00 01 0F 63 6E 61 6D 65 64 6F 74 om...... cnamedot
[0030] 70 72 65 66 69 78 30 C0 0C 00 05 00 01 00 00 03 prefix0. ........
[0040] 84 00 13 00 0F 62 6E 61 6D 65 64 6F 74 70 72 65 .....bna medotpre
[0050] 66 69 78 32 C0 0C fix2..