Add a test file that uses the bindings.

This commit is contained in:
Wesley Shields 2013-11-27 15:53:20 -05:00
parent a928a15b8b
commit 14e2848aa2

12
python/test.py Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env python
import sys
import pepy
from pprint import pprint
p = pepy.parse(sys.argv[1])
ep = p.get_entry_point()
byts = p.get_bytes(ep, 8)
print "Bytes at 0x%x: %s" % (ep, byts)
for sect in p.get_sections():
pprint(sect)