2015-04-08 21:48:15 +02:00
|
|
|
/** @file
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2015, Edouard DUPIN, all right reserved
|
2017-01-05 21:28:23 +01:00
|
|
|
* @license MPL v2.0 (see license file)
|
2015-04-08 21:48:15 +02:00
|
|
|
*/
|
|
|
|
|
2016-10-02 20:37:21 +02:00
|
|
|
#include <test-debug/debug.hpp>
|
2017-09-07 23:38:26 +02:00
|
|
|
#include <etest/etest.hpp>
|
2016-10-02 20:37:21 +02:00
|
|
|
#include <etk/etk.hpp>
|
|
|
|
#include <etk/os/FSNode.hpp>
|
|
|
|
#include <cmath>
|
2015-04-08 21:48:15 +02:00
|
|
|
#include <sstream>
|
2016-10-13 21:29:18 +02:00
|
|
|
|
2017-09-07 23:38:26 +02:00
|
|
|
#include <ethread/Thread.hpp>
|
2016-10-02 20:37:21 +02:00
|
|
|
#include <audio/types.hpp>
|
2015-04-08 21:48:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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) {
|
2017-08-28 00:06:44 +02:00
|
|
|
etk::String data = _argv[iii];
|
2015-04-08 21:48:15 +02:00
|
|
|
if ( data == "-h"
|
|
|
|
|| data == "--help") {
|
2015-10-14 21:21:03 +02:00
|
|
|
TEST_INFO("Help : ");
|
|
|
|
TEST_INFO(" ./xxx ---");
|
2015-04-08 21:48:15 +02:00
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
}
|
|
|
|
|
|
|
|
|