-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from axsaucedo/migrating_to_gtest
Migrating to gtest
- Loading branch information
Showing
17 changed files
with
161 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
#define CATCH_CONFIG_RUNNER | ||
|
||
// clang-format: SPDLOG_ACTIVE_LEVEL must be defined before spdlog.h import | ||
#if DEBUG | ||
#ifndef SPDLOG_ACTIVE_LEVEL | ||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG | ||
#endif | ||
#endif | ||
|
||
//#include <spdlog/spdlog.h> | ||
//// clang-format: ranges.h must come after spdlog.h | ||
//#include <fmt/ranges.h> | ||
#include <gmock/gmock.h> | ||
|
||
#include "catch2/catch.hpp" | ||
#include <kompute/Kompute.hpp> | ||
|
||
int main( int argc, char* argv[] ) { | ||
int main(int argc, char *argv[]) { | ||
testing::InitGoogleTest(&argc, argv); | ||
testing::InitGoogleMock(&argc, argv); | ||
|
||
int result = Catch::Session().run( argc, argv ); | ||
|
||
// global clean-up... | ||
#if KOMPUTE_ENABLE_SPDLOG | ||
spdlog::set_level(static_cast<spdlog::level::level_enum>(SPDLOG_ACTIVE_LEVEL)); | ||
#endif | ||
|
||
return result; | ||
return RUN_ALL_TESTS(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.