summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/bindings/python/tests/cindex/test_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/tools/clang/bindings/python/tests/cindex/test_index.py')
-rw-r--r--gnu/llvm/tools/clang/bindings/python/tests/cindex/test_index.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/gnu/llvm/tools/clang/bindings/python/tests/cindex/test_index.py b/gnu/llvm/tools/clang/bindings/python/tests/cindex/test_index.py
deleted file mode 100644
index 46aafcf222e..00000000000
--- a/gnu/llvm/tools/clang/bindings/python/tests/cindex/test_index.py
+++ /dev/null
@@ -1,26 +0,0 @@
-import os
-from clang.cindex import Config
-if 'CLANG_LIBRARY_PATH' in os.environ:
- Config.set_library_path(os.environ['CLANG_LIBRARY_PATH'])
-
-from clang.cindex import *
-import os
-import unittest
-
-
-kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS')
-
-
-class TestIndex(unittest.TestCase):
- def test_create(self):
- index = Index.create()
-
- # FIXME: test Index.read
-
- def test_parse(self):
- index = Index.create()
- self.assertIsInstance(index, Index)
- tu = index.parse(os.path.join(kInputsDir, 'hello.cpp'))
- self.assertIsInstance(tu, TranslationUnit)
- tu = index.parse(None, ['-c', os.path.join(kInputsDir, 'hello.cpp')])
- self.assertIsInstance(tu, TranslationUnit)