From bcc4e4539c31d47d6662a321c639e4c983261aeb Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Wed, 4 Apr 2018 23:02:18 +0300 Subject: Add README for conformance test --- tests/conformance/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/conformance/README.md diff --git a/tests/conformance/README.md b/tests/conformance/README.md new file mode 100644 index 0000000..d7614fb --- /dev/null +++ b/tests/conformance/README.md @@ -0,0 +1,17 @@ +# Building + + $ protoc -I. --nim_out=. test_messages_proto3.proto + $ protoc -I. --nim_out=. conformance.proto + $ nim c conformance_nim.nim + +# Running conformance tests + +First you need to get protobuf library sources and build the library. After +building, there should be `conformance/conformance-test-runner` that contains +the actual test suite. The test runner communicates with the `conformance_nim` +over pipes, passing in requests and receiving responses. + +Running the test suite (assuming your working directory is in +`protobuf-src/conformance`): + + $ ./conformance-test-runner /path/to/nimpb/tests/conformance/conformance_nim -- cgit v1.2.3