mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
6b4a6f5389
It was implemented in such a way that gtest is required only if the user wants to build and run tests. Initially we're considering all tests should be gtests. We can change that assumption in the future if necessary.
12 lines
221 B
C
12 lines
221 B
C
/*
|
|
* Utility header for unit tests with gtest.
|
|
*/
|
|
#include <gtest/gtest.h>
|
|
|
|
#define AP_GTEST_MAIN() \
|
|
int main(int argc, char *argv[]) \
|
|
{ \
|
|
::testing::InitGoogleTest(&argc, argv); \
|
|
return RUN_ALL_TESTS(); \
|
|
}
|