configuration_gtest.cpp 742 B

1234567891011121314151617181920212223
  1. #include <iostream>
  2. #include <string>
  3. int main(int argc, char** argv)
  4. {
  5. // Note: GoogleTest.cmake doesn't actually depend on Google Test as such;
  6. // it only requires that we produces output in the expected format when
  7. // invoked with --gtest_list_tests. Thus, we fake that here. This allows us
  8. // to test the module without actually needing Google Test.
  9. if (argc > 1 && std::string(argv[1]) == "--gtest_list_tests") {
  10. std::cout << "configuration." << std::endl;
  11. #ifdef DEBUG
  12. std::cout << " DISABLED_case_release" << std::endl;
  13. std::cout << " case_debug" << std::endl;
  14. #else
  15. std::cout << " case_release" << std::endl;
  16. std::cout << " DISABLED_case_debug" << std::endl;
  17. #endif
  18. return 0;
  19. }
  20. return 1;
  21. }