Просмотр исходного кода

Got the nested message proto file back for testing.

Bart Hertog 6 лет назад
Родитель
Сommit
da22aca756
2 измененных файлов с 26 добавлено и 0 удалено
  1. 7 0
      build_test.sh
  2. 19 0
      test/proto/nested_message.proto

+ 7 - 0
build_test.sh

@@ -3,6 +3,13 @@
 # Generate sources using the EAMS plugin.
 mkdir -p ./build/EAMS
 protoc --plugin=protoc-gen-eams=protoc-gen-eams -I./test/proto --eams_out=./build/EAMS ./test/proto/simple_types.proto
+protoc --plugin=protoc-gen-eams=protoc-gen-eams -I./test/proto --eams_out=./build/EAMS ./test/proto/nested_message.proto
+
+# For validation and testing generate the same message using python
+mkdir -p ./build/python
+protoc -I./test/proto --cpp_out=./build/python ./test/proto/simple_types.proto
+protoc -I./test/proto --cpp_out=./build/python ./test/proto/nested_message.proto
+
 
 # Build the tests
 mkdir -p build/test

+ 19 - 0
test/proto/nested_message.proto

@@ -0,0 +1,19 @@
+
+// This file is used to test the wire formatter class.
+
+syntax = "proto3";
+
+message message_a 
+{
+  int32 x   = 1;
+  float y   = 2;
+  sint64 z  = 3;
+}
+
+message message_b 
+{
+  double a  = 1;
+  double b  = 2;
+  message_a msg_c = 3;
+}
+