* Copyright (c) 2023 Huawei Technologies Co., Ltd.
* openUBMC is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
#include <cstdlib>
#include <gtest/gtest.h>
#include <mc/log.h>
#ifdef HAS_GCOV
extern "C" void __gcov_dump(void);
#endif
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, argv);
std::cout << "Running devmon tests..." << std::endl;
std::cout << "Tests will validate device drivers and manager functionality." << std::endl;
int result = RUN_ALL_TESTS();
#ifdef HAS_GCOV
__gcov_dump();
#endif
std::quick_exit(result);
}