Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Python port of bro utility and scripts to test Brotli extension #38

Merged
merged 1 commit into from
Mar 16, 2015

Conversation

anthrotype
Copy link
Member

The bro.py accepts the same options as the bro command-line utility, and supports piping to/from the standard streams.
The test scripts are simple Python ports of compatibility_test.sh and roundtrip_test.sh shell script.

I made that to be able to test the Brotli Python extension against the same data used by the test shell scripts.
The scripts are especially useful on Windows, which doesn't include the bash shell, and where the bro utility fails to compile using the native MSVC compiler.

Please note that bro.py depends on @khaledhosny's #36 patch, since it just calls brotli.decompress(string) and expects the decompression buffer to be dynamically allocated.

Thank you.

Cosimo

szabadka added a commit that referenced this pull request Mar 16, 2015
add Python port of bro utility and scripts to test Brotli extension
@szabadka szabadka merged commit 4836e87 into google:master Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants