37 lines
769 B
C++
37 lines
769 B
C++
/** @file
|
|
* @author Edouard DUPIN
|
|
* @copyright 2015, Edouard DUPIN, all right reserved
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
|
|
#include <test-debug/debug.hpp>
|
|
#include <gtest/gtest.h>
|
|
#include <etk/etk.hpp>
|
|
#include <etk/os/FSNode.hpp>
|
|
#include <cmath>
|
|
#include <sstream>
|
|
#include <unistd.h>
|
|
#include <thread>
|
|
#include <audio/types.hpp>
|
|
|
|
|
|
|
|
int main(int _argc, const char** _argv) {
|
|
// init Google test :
|
|
::testing::InitGoogleTest(&_argc, const_cast<char **>(_argv));
|
|
// 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") {
|
|
TEST_INFO("Help : ");
|
|
TEST_INFO(" ./xxx ---");
|
|
exit(0);
|
|
}
|
|
}
|
|
return RUN_ALL_TESTS();
|
|
}
|
|
|
|
|