diff --git a/README.md b/README.md index f98aeca2..669bc6cf 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ $ git clone --recursive https://github.com/pytorch/tensorpipe Then, build as follows (using ninja instead of make): -``` shell +```shell $ cd tensorpipe $ mkdir build $ cd build @@ -22,8 +22,24 @@ $ cmake ../ -GNinja $ ninja ``` +### Running Tests + +Tests can be built using this variant of the above cmake / ninja build: + +```shell +$ cmake ../ -GNinja -DTP_BUILD_TESTING=ON +$ ninja tensorpipe_test +``` + You can find test executables in `build/tensorpipe/test`. +Tests can be run using (e.g.) +```shell +$ ./tensorpipe_test --gtest_filter='-*Ibv*' +``` + +The filter `--gtest_filter='-*Ibv*'` prevents the tests from stalling if your system doesn't have Infiniband. + ## Interface There are four classes you need to know about: diff --git a/third_party/googletest b/third_party/googletest index aee0f9d9..52eb8108 160000 --- a/third_party/googletest +++ b/third_party/googletest @@ -1 +1 @@ -Subproject commit aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e +Subproject commit 52eb8108c5bdec04579160ae17225d66034bd723