Integrate python json parser as a service for testing #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of the outputs of librdb is JSON. Until now there was a naive testing code that compared two json files, attempting to ignore JSON elements ordering. This PR replaces it with a python service, run in the background, read JSON filename from its STDIN, generates its signature by ignoring JSON elements order, and prints SHA256 signature to its STDOUT. test_common.c will fork this service. The reason it is running as a service is to avoid the overhead of starting a new process for each evaluation and the intensive use of it.
In addition the optional json fields will be now in the form:
In JSON, the value “-0.0” is a valid double, but we want to output it as 0.
Modified librdb tests to run with -O0 optimization instead of -O3