Skip to content

Latest commit

 

History

History

conformance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Protocol Buffer Conformance Testing

Running the conformance test

Running with Nix

From the top directory of this repo,

nix run .#conformance

Running from output/

cd conformance
spago build
conformance_test_runner --enforce_recommended bin/conformance-purescript

Running from bundled executable

cd conformance
spago bundle --platform=node --minify --bundle-type app --outfile conformance.mjs
conformance_test_runner --enforce_recommended ./conformance.mjs

About the conformance test runner

Conformance README

The derivations in nix/protobuf.nix will build protoc and the conformance-test-runner.

Dev

To generate the conformance .purs in the dev environment:

protoc --purescript_out=./conformance/src/generated --proto_path=$(nix path-info .#protobuf)/conformance $(nix path-info .#protobuf)/conformance/conformance.proto
protoc --purescript_out=./conformance/src/generated --proto_path=$(nix path-info .#protobuf)/src $(nix path-info .#protobuf)/src/google/protobuf/test_messages_proto3.proto