[CRIU] [PATCH 00/10] phaul: rework code to use general practices for golang
Andrei Vagin
avagin at openvz.org
Wed Oct 18 02:59:11 MSK 2017
From: Andrei Vagin <avagin at virtuozzo.com>
Andrei Vagin (10):
phaul: use full paths for modules
lib: add lib/go/src/rpc/rpc.pb.go
phaul: add phaul/src/stats/stats.pb.go
phaul/test: add github.com/golang/protobuf in vendor/
phaul: add a script to run tests
phaul: print a message from error objects
phaul/test: exit with a non-zero code in error cases
phaul: check an exit code of a page-server
phaul/Makefile: add a target to run tests
travis: run phaul tests
lib/go/.gitignore | 1 -
lib/go/src/criu/main.go | 52 +-
lib/go/src/rpc/rpc.pb.go | 1203 ++++++
phaul/.gitignore | 1 -
phaul/Makefile | 10 +-
phaul/src/phaul/api.go | 2 +-
phaul/src/phaul/client.go | 7 +-
phaul/src/phaul/server.go | 33 +-
phaul/src/phaul/stats.go | 5 +-
phaul/src/stats/stats.pb.go | 222 ++
phaul/src/test/Makefile | 2 +
phaul/src/test/main.go | 26 +-
.../test/vendor/github.com/checkpoint-restore/criu | 1 +
.../vendor/github.com/golang/protobuf/.gitignore | 16 +
.../vendor/github.com/golang/protobuf/.travis.yml | 18 +
.../test/vendor/github.com/golang/protobuf/AUTHORS | 3 +
.../vendor/github.com/golang/protobuf/CONTRIBUTORS | 3 +
.../test/vendor/github.com/golang/protobuf/LICENSE | 31 +
.../github.com/golang/protobuf/Make.protobuf | 40 +
.../vendor/github.com/golang/protobuf/Makefile | 55 +
.../vendor/github.com/golang/protobuf/README.md | 243 ++
.../golang/protobuf/_conformance/Makefile | 33 +
.../golang/protobuf/_conformance/conformance.go | 161 +
.../conformance_proto/conformance.pb.go | 1885 +++++++++
.../conformance_proto/conformance.proto | 285 ++
.../golang/protobuf/descriptor/descriptor.go | 93 +
.../golang/protobuf/descriptor/descriptor_test.go | 32 +
.../github.com/golang/protobuf/jsonpb/jsonpb.go | 1082 +++++
.../golang/protobuf/jsonpb/jsonpb_test.go | 848 ++++
.../protobuf/jsonpb/jsonpb_test_proto/Makefile | 33 +
.../jsonpb_test_proto/more_test_objects.pb.go | 266 ++
.../jsonpb_test_proto/more_test_objects.proto | 69 +
.../jsonpb/jsonpb_test_proto/test_objects.pb.go | 852 ++++
.../jsonpb/jsonpb_test_proto/test_objects.proto | 147 +
.../github.com/golang/protobuf/proto/Makefile | 43 +
.../github.com/golang/protobuf/proto/all_test.go | 2278 +++++++++++
.../github.com/golang/protobuf/proto/any_test.go | 300 ++
.../github.com/golang/protobuf/proto/clone.go | 229 ++
.../github.com/golang/protobuf/proto/clone_test.go | 300 ++
.../github.com/golang/protobuf/proto/decode.go | 970 +++++
.../golang/protobuf/proto/decode_test.go | 258 ++
.../github.com/golang/protobuf/proto/encode.go | 1362 +++++++
.../golang/protobuf/proto/encode_test.go | 85 +
.../github.com/golang/protobuf/proto/equal.go | 300 ++
.../github.com/golang/protobuf/proto/equal_test.go | 224 ++
.../github.com/golang/protobuf/proto/extensions.go | 587 +++
.../golang/protobuf/proto/extensions_test.go | 536 +++
.../vendor/github.com/golang/protobuf/proto/lib.go | 897 +++++
.../github.com/golang/protobuf/proto/map_test.go | 46 +
.../golang/protobuf/proto/message_set.go | 311 ++
.../golang/protobuf/proto/message_set_test.go | 66 +
.../golang/protobuf/proto/pointer_reflect.go | 484 +++
.../golang/protobuf/proto/pointer_unsafe.go | 270 ++
.../github.com/golang/protobuf/proto/properties.go | 872 ++++
.../protobuf/proto/proto3_proto/proto3.pb.go | 347 ++
.../protobuf/proto/proto3_proto/proto3.proto | 87 +
.../golang/protobuf/proto/proto3_test.go | 135 +
.../github.com/golang/protobuf/proto/size2_test.go | 63 +
.../github.com/golang/protobuf/proto/size_test.go | 164 +
.../golang/protobuf/proto/testdata/Makefile | 50 +
.../golang/protobuf/proto/testdata/golden_test.go | 86 +
.../golang/protobuf/proto/testdata/test.pb.go | 4147 ++++++++++++++++++++
.../golang/protobuf/proto/testdata/test.proto | 548 +++
.../github.com/golang/protobuf/proto/text.go | 854 ++++
.../golang/protobuf/proto/text_parser.go | 895 +++++
.../golang/protobuf/proto/text_parser_test.go | 673 ++++
.../github.com/golang/protobuf/proto/text_test.go | 474 +++
.../golang/protobuf/protoc-gen-go/Makefile | 33 +
.../protobuf/protoc-gen-go/descriptor/Makefile | 37 +
.../protoc-gen-go/descriptor/descriptor.pb.go | 2174 ++++++++++
.../protoc-gen-go/descriptor/descriptor.proto | 837 ++++
.../golang/protobuf/protoc-gen-go/doc.go | 51 +
.../protobuf/protoc-gen-go/generator/Makefile | 40 +
.../protobuf/protoc-gen-go/generator/generator.go | 2805 +++++++++++++
.../protobuf/protoc-gen-go/generator/name_test.go | 85 +
.../golang/protobuf/protoc-gen-go/grpc/grpc.go | 463 +++
.../golang/protobuf/protoc-gen-go/link_grpc.go | 34 +
.../golang/protobuf/protoc-gen-go/main.go | 98 +
.../golang/protobuf/protoc-gen-go/plugin/Makefile | 45 +
.../protobuf/protoc-gen-go/plugin/plugin.pb.go | 293 ++
.../protobuf/protoc-gen-go/plugin/plugin.pb.golden | 83 +
.../protobuf/protoc-gen-go/plugin/plugin.proto | 166 +
.../protobuf/protoc-gen-go/testdata/Makefile | 73 +
.../protoc-gen-go/testdata/extension_base.proto | 46 +
.../protoc-gen-go/testdata/extension_extra.proto | 38 +
.../protoc-gen-go/testdata/extension_test.go | 210 +
.../protoc-gen-go/testdata/extension_user.proto | 100 +
.../protobuf/protoc-gen-go/testdata/grpc.proto | 59 +
.../protoc-gen-go/testdata/imp.pb.go.golden | 113 +
.../protobuf/protoc-gen-go/testdata/imp.proto | 70 +
.../protobuf/protoc-gen-go/testdata/imp2.proto | 43 +
.../protobuf/protoc-gen-go/testdata/imp3.proto | 38 +
.../protobuf/protoc-gen-go/testdata/main_test.go | 46 +
.../protoc-gen-go/testdata/multi/multi1.proto | 44 +
.../protoc-gen-go/testdata/multi/multi2.proto | 46 +
.../protoc-gen-go/testdata/multi/multi3.proto | 43 +
.../protoc-gen-go/testdata/my_test/test.pb.go | 870 ++++
.../testdata/my_test/test.pb.go.golden | 870 ++++
.../protoc-gen-go/testdata/my_test/test.proto | 156 +
.../protobuf/protoc-gen-go/testdata/proto3.proto | 53 +
.../github.com/golang/protobuf/ptypes/any.go | 139 +
.../golang/protobuf/ptypes/any/any.pb.go | 168 +
.../golang/protobuf/ptypes/any/any.proto | 139 +
.../github.com/golang/protobuf/ptypes/any_test.go | 113 +
.../github.com/golang/protobuf/ptypes/doc.go | 35 +
.../github.com/golang/protobuf/ptypes/duration.go | 102 +
.../golang/protobuf/ptypes/duration/duration.pb.go | 144 +
.../golang/protobuf/ptypes/duration/duration.proto | 117 +
.../golang/protobuf/ptypes/duration_test.go | 121 +
.../golang/protobuf/ptypes/empty/empty.pb.go | 66 +
.../golang/protobuf/ptypes/empty/empty.proto | 52 +
.../github.com/golang/protobuf/ptypes/regen.sh | 43 +
.../golang/protobuf/ptypes/struct/struct.pb.go | 380 ++
.../golang/protobuf/ptypes/struct/struct.proto | 96 +
.../github.com/golang/protobuf/ptypes/timestamp.go | 134 +
.../protobuf/ptypes/timestamp/timestamp.pb.go | 160 +
.../protobuf/ptypes/timestamp/timestamp.proto | 133 +
.../golang/protobuf/ptypes/timestamp_test.go | 153 +
.../golang/protobuf/ptypes/wrappers/wrappers.pb.go | 260 ++
.../golang/protobuf/ptypes/wrappers/wrappers.proto | 118 +
phaul/test.sh | 7 +
scripts/travis/travis-tests | 9 +
122 files changed, 39510 insertions(+), 42 deletions(-)
create mode 100644 lib/go/src/rpc/rpc.pb.go
create mode 100644 phaul/src/stats/stats.pb.go
create mode 100644 phaul/src/test/Makefile
create mode 120000 phaul/src/test/vendor/github.com/checkpoint-restore/criu
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/.gitignore
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/.travis.yml
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/AUTHORS
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/CONTRIBUTORS
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/LICENSE
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/Make.protobuf
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/README.md
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/_conformance/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/_conformance/conformance.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/_conformance/conformance_proto/conformance.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/_conformance/conformance_proto/conformance.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/descriptor/descriptor.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/descriptor/descriptor_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/jsonpb/jsonpb_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/more_test_objects.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/more_test_objects.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/test_objects.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/test_objects.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/all_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/any_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/clone.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/clone_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/decode.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/decode_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/encode.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/encode_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/equal.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/equal_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/extensions.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/extensions_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/lib.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/map_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/message_set.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/message_set_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/pointer_reflect.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/properties.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/proto3_proto/proto3.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/proto3_proto/proto3.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/proto3_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/size2_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/size_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/testdata/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/testdata/golden_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/testdata/test.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/testdata/test.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/text.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/text_parser.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/text_parser_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/proto/text_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/doc.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/generator/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/generator/name_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/grpc/grpc.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/link_grpc.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/main.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.golden
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/Makefile
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.pb.go.golden
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp2.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp3.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/main_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go.golden
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/any.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/any/any.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/any_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/doc.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/duration.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/duration/duration.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/duration_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/empty/empty.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/empty/empty.proto
create mode 100755 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/regen.sh
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/struct/struct.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/struct/struct.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/timestamp.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/timestamp_test.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.pb.go
create mode 100644 phaul/src/test/vendor/github.com/golang/protobuf/ptypes/wrappers/wrappers.proto
create mode 100755 phaul/test.sh
--
2.13.3
More information about the CRIU
mailing list