diff options
author | Gregory Szorc <gregory.szorc@gmail.com> | 2012-03-10 04:41:24 +0000 |
---|---|---|
committer | Gregory Szorc <gregory.szorc@gmail.com> | 2012-03-10 04:41:24 +0000 |
commit | 61e22cd85cd4c84fff391da67018c92bf21a8e19 (patch) | |
tree | 9f3f6b06d25b5735247ea51b665ed16a858cab3b /bindings/python/llvm/tests/test_core.py | |
parent | 51cf8661637c114e4b4f178bd2677a6bb246be0d (diff) |
[llvm.py] Implement interface to object files
It is now possible to load object files and scan over sections, symbols,
and relocations! Includes test code with partial coverage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/llvm/tests/test_core.py')
-rw-r--r-- | bindings/python/llvm/tests/test_core.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bindings/python/llvm/tests/test_core.py b/bindings/python/llvm/tests/test_core.py new file mode 100644 index 0000000000..be3df66c26 --- /dev/null +++ b/bindings/python/llvm/tests/test_core.py @@ -0,0 +1,9 @@ +from llvm.core import MemoryBuffer + +from .base import TestBase + +class TestCore(TestBase): + def test_memory_buffer_create_from_file(self): + source = self.get_test_binary() + + MemoryBuffer(filename=source) |