audio-drain/test/main.cpp

28 lines
636 B
C++
Raw Normal View History

2015-03-25 21:14:12 +01:00
/** @file
* @author Edouard DUPIN
* @copyright 2015, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
2016-10-02 21:41:55 +02:00
#include <etk/etk.hpp>
#include <test-debug/debug.hpp>
2015-03-25 21:14:12 +01:00
#include <gtest/gtest.h>
2015-04-11 13:20:07 +02:00
int main(int _argc, const char** _argv) {
2015-03-25 21:14:12 +01:00
// init Google test :
2015-04-11 13:20:07 +02:00
::testing::InitGoogleTest(&_argc, const_cast<char **>(_argv));
2015-03-25 21:14:12 +01:00
// the only one init for etk:
etk::init(_argc, _argv);
for (int32_t iii=0; iii<_argc ; ++iii) {
std::string data = _argv[iii];
if ( data == "-h"
|| data == "--help") {
2015-10-14 21:21:03 +02:00
TEST_INFO("Help : ");
TEST_INFO(" ./xxx ---");
2015-03-25 21:14:12 +01:00
exit(0);
}
}
return RUN_ALL_TESTS();
}