git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741832
13f79535-47bb-0310-9956-
ffa450edef68
indent() << "def " << function_signature(*f_iter) << ":" << endl <<
indent() << " pass" << endl << endl;
}
+ if (functions.empty()) {
+ f_service_ <<
+ indent() << "pass" << endl;
+ }
+
indent_down();
f_service_ <<
endl;
i32 Janky(i32 arg)
}
+service EmptyService {}
+
// The only purpose of this thing is to increase the size of the generated code
// so that ZlibTest has more highly compressible data to play with.
struct BlowUp {
py_unit_tests = \
SerializationTest.py \
TestEof.py \
+ TestSyntax.py \
RunClientServer.py
thrift_gen = \
- gen-py/ThriftTest/__init__.py
+ gen-py/ThriftTest/__init__.py \
+ gen-py/DebugProtoTest/__init__.py
helper_scripts= \
TestClient.py \
TESTS= $(py_unit_tests)
-gen-py/ThriftTest/__init__.py: ../ThriftTest.thrift
+gen-py/%/__init__.py: ../%.thrift
$(THRIFT) --gen py $<
clean-local:
--- /dev/null
+#!/usr/bin/env python
+
+import sys, glob
+sys.path.insert(0, './gen-py')
+sys.path.insert(0, glob.glob('../../lib/py/build/lib.*')[0])
+
+# Just import these generated files to make sure they are syntactically valid
+from DebugProtoTest import EmptyService