unify cpp tests (#17947)
authorMichael Suo <suo@fb.com>
Wed, 13 Mar 2019 04:31:59 +0000 (21:31 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 13 Mar 2019 04:35:40 +0000 (21:35 -0700)
commit9a946c40727111f750f722d07191ae19328c4451
tree72890d99807ce75e47e17ebf94c7446398c0221f
parent4f939dded1a510c0108e5c8b1f4938fd353189b1
unify cpp tests (#17947)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17947

Instead of having a gtest and a no-gtest file that you have to remember to register tests in, add a single registration point and use some macro magic to make it work for both gtest and non-gtest builds

Reviewed By: eellison

Differential Revision: D14431302

fbshipit-source-id: e1abac135992577a943eaa7abcc81a6ed31fa6e5
test/cpp/jit/CMakeLists.txt
test/cpp/jit/gtest.cpp [deleted file]
test/cpp/jit/no-gtest.cpp [deleted file]
test/cpp/jit/test.cpp [new file with mode: 0644]
test/cpp/jit/test_base.h
torch/CMakeLists.txt