|
20 | 20 |
|
21 | 21 | #include <gz/utils/detail/ExtraTestMacros.hh>
|
22 | 22 |
|
| 23 | +/// \brief Restrict the execution of the test to just the Windows platform |
| 24 | +/// Other platforms will get the test compiled but it won't be run |
| 25 | +/// as part of the test suite execution. |
| 26 | +/// The macro uses the Disabled_ prefix provided by googletest. See |
| 27 | +/// https://chromium.googlesource.com/external/github.com/google/googletest/+/HEAD/googletest/docs/advanced.md |
| 28 | +#define GZ_UTILS_TEST_ENABLED_ONLY_ON_WINDOWS(TestName) \ |
| 29 | + DETAIL_GZ_UTILS_TEST_ENABLED_ONLY_ON_WINDOWS(TestName) |
| 30 | + |
23 | 31 | /// \brief Restrict the execution of the test for the Windows platform.
|
24 | 32 | /// The test will be compiled on Windows too but will never be run as
|
25 | 33 | /// part of the test suite. The macro uses the Disabled_ prefix provided
|
|
28 | 36 | #define GZ_UTILS_TEST_DISABLED_ON_WIN32(TestName) \
|
29 | 37 | DETAIL_GZ_UTILS_TEST_DISABLED_ON_WIN32(TestName)
|
30 | 38 |
|
| 39 | +/// \brief Restrict the execution of the test to just the MacOS platform |
| 40 | +/// Other platforms will get the test compiled but it won't be run |
| 41 | +/// as part of the test suite execution. |
| 42 | +/// The macro uses the Disabled_ prefix provided by googletest. See |
| 43 | +/// https://chromium.googlesource.com/external/github.com/google/googletest/+/HEAD/googletest/docs/advanced.md |
| 44 | +#define GZ_UTILS_TEST_ENABLED_ONLY_ON_MAC(TestName) \ |
| 45 | + DETAIL_GZ_UTILS_TEST_ENABLED_ONLY_ON_MAC(TestName) |
| 46 | + |
31 | 47 | /// \brief Restrict the execution of the test for the Mac platform.
|
32 |
| -/// The test will be compiled on Windows too but will never be run as |
| 48 | +/// The test will be compiled on Mac too but will never be run as |
33 | 49 | /// part of the test suite. The macro uses the Disabled_ prefix provided
|
34 | 50 | /// by googletest. See
|
35 | 51 | /// https://chromium.googlesource.com/external/github.com/google/googletest/+/HEAD/googletest/docs/advanced.md
|
|
44 | 60 | #define GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(TestName) \
|
45 | 61 | DETAIL_GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(TestName)
|
46 | 62 |
|
| 63 | +/// \brief Restrict the execution of the test for the Linux platform |
| 64 | +/// The test will be compiled on Linux too but will never be run as |
| 65 | +/// part of the test suite. The macro uses the Disabled_ prefix provided |
| 66 | +/// by googletest. See |
| 67 | +/// https://chromium.googlesource.com/external/github.com/google/googletest/+/HEAD/googletest/docs/advanced.md |
| 68 | +#define GZ_UTILS_TEST_DISABLED_ON_LINUX(TestName) \ |
| 69 | + DETAIL_GZ_UTILS_TEST_DISABLED_ON_LINUX(TestName) |
| 70 | + |
47 | 71 | #endif // GZ_UTILS_EXTRATESTMACROS_HH
|
0 commit comments