projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[python bindings] Added code to get the length of a memory buffer. Tests are included.
[oota-llvm.git]
/
bindings
/
python
/
llvm
/
tests
/
base.py
diff --git
a/bindings/python/llvm/tests/base.py
b/bindings/python/llvm/tests/base.py
index ff9eb2fc143862515188fd21a30d58fb7503a84e..22da5fdbdd0970da4eecb5e7282ecb2bf243f616 100644
(file)
--- a/
bindings/python/llvm/tests/base.py
+++ b/
bindings/python/llvm/tests/base.py
@@
-30,3
+30,6
@@
class TestBase(unittest.TestCase):
raise Exception('No suitable test binaries available!')
get_test_binary.__test__ = False
+
+ def get_test_file(self):
+ return os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_file")