9 Commits
Author SHA1 Message Date
Wez Furlong 051b85ba7d break out various test configurations as their own TestCase instances
This allows the tests to be distributed across the test runner threads
more effectively.

Also fix up a line buffering issue with the Json codec
2015-08-02 15:10:57 -07:00
Wez Furlong 0b18152104 pywatchman: fixup bser handling for python long values
Also wire up py-build into `make integration`
2015-08-01 00:31:29 -07:00
Wez Furlong 89bcf21507 pywatchman: support subscriptions and log responses 2015-08-01 00:27:26 -07:00
Wez Furlong 75c5909f61 watchman: allow running various test configurations in python tests
Tests combinations of bser, json, local IPC and CLI interfaces
2015-07-28 21:15:52 -07:00
Siddharth Agarwal 3f9e9e9f7d pywatchman: add a docstring 2015-06-29 22:33:04 -07:00
Siddharth Agarwal 0ba4bbb42c pywatchman: rename Unavailable to WatchmanError and add CommandError 2015-06-29 22:30:28 -07:00
Marc Horowitz b5bc4abcd5 refactor receive() code out of query() so it can be used with notifications
Summary:
this is a change to upstream third-party source, and should
be submitted for inclusion.

Test Plan: I have an application which uses this, and it works.

Reviewers: sid0, wez

Reviewed By: wez

Differential Revision: https://reviews.facebook.net/D28641
2014-11-11 17:38:00 -08:00
Wez Furlong e3c9d74ee1 read minimum length when determining pdu length
in cases where the session is long lived (eg: subscriptions), reading
too much without buffering could lead to skipping over multiple small
responses.
2014-05-17 18:17:16 -07:00
Wez Furlong 6ea4ed8343 refactor python bser module to pywatchman.bser, add pywatchman.client
Summary:
This draws from our hgwatchman client code to provide a simple
watchman client API for python code.

This changes the makefile so that we install our watchman python module
during `make install`.  It also wires up a rudimentary test of the
client that talks to one of the instances set up by
WatchmanIntegrationEngine.

Test Plan: `./configure --with-python ; make integration`

Reviewers: sid0, achao

Reviewed By: sid0

Subscribers: moshez

Differential Revision: https://phabricator.fb.com/D1323720
2014-05-16 13:11:03 -07:00