Jason Rhinelander 920e0e349d Add cmake option to override tests (#489)
When working on some particular feature, it's nice to be able to disable
all the tests except for the one I'm working on; this is currently
possible by editing tests/CMakeLists.txt, and commenting out the tests
you don't want.

This commit goes a step further by letting you give a list of tests you
do want when invoking cmake, e.g.:

    cmake -DPYBIND11_TEST_OVERRIDE="test_issues.cpp;test_pickling.cpp" ..

changes the build to build just those two tests (and changes the `pytest`
target to invoke just the two associated tests).

This persists in the build directory until you disable it again by
running cmake with `-DPYBIND11_TEST_OVERRIDE=`.  It also adds a message
after the pytest output to remind you that it is in effect:

    Note: not all tests run: -DPYBIND11_TEST_OVERRIDE is in effect
2016-11-13 09:10:53 +09:00
..
2016-09-06 13:02:29 +09:00
2016-08-19 13:19:38 +02:00
2016-09-06 13:02:29 +09:00
2016-09-06 13:02:29 +09:00
2016-08-19 13:19:38 +02:00
2016-08-19 13:19:38 +02:00
2016-10-28 01:23:42 +02:00
2016-10-11 22:13:02 +02:00
2016-09-06 13:02:29 +09:00
2016-09-05 17:11:16 -04:00