diff --git a/newbinding/Makefile b/newbinding/Makefile index 735d4ff..8573235 100644 --- a/newbinding/Makefile +++ b/newbinding/Makefile @@ -13,10 +13,10 @@ clean: cleantemp cleantemp: rm -f api.cpp api.py - rm -f src/*.pyc + rm -f src/*.pyc src/Transforms/*.pyc check: _api.so api.py - $(PYTHON) test2.py + $(PYTHON) test_binding.py @PHONY: all clean check diff --git a/newbinding/test.py b/newbinding/test.py deleted file mode 100644 index bed9e1a..0000000 --- a/newbinding/test.py +++ /dev/null @@ -1,32 +0,0 @@ -import _api - -context = _api.getGlobalContext() -modname = "modname" -module = _api.Module.new(modname, context) -assert modname == _api.Module.getModuleIdentifier(module) -modname2 = "newmodname" -_api.Module.setModuleIdentifier(module, modname2) -assert modname2 == _api.Module.getModuleIdentifier(module) - -_api.Module.dump(module) - -_api.Module.delete(module) - -voidty = _api.Type.getVoidTy(context) -assert _api.Type.isVoidTy(voidty) -assert not _api.Type.isLabelTy(voidty) - -int21ty = _api.Type.getIntNTy(context, 21) -assert _api.Type.isIntegerTy(int21ty) -assert _api.Type.isIntegerTy(int21ty, 21) -_api.Type.dump(int21ty) - -halfty = _api.Type.getHalfTy(context) -assert _api.Type.isHalfTy(halfty) -_api.Type.dump(halfty) - -fnty = _api.FunctionType.get(halfty, False) -_api.Type.dump(fnty) - - - diff --git a/newbinding/test2.py b/newbinding/test_binding.py similarity index 100% rename from newbinding/test2.py rename to newbinding/test_binding.py