exml/test/main.cpp

26 lines
590 B
C++
Raw Permalink Normal View History

/** @file
* @author Edouard DUPIN
* @copyright 2014, Edouard DUPIN, all right reserved
* @license MPL v2.0 (see license file)
*/
2016-10-02 15:58:37 +02:00
#include <test-debug/debug.hpp>
2017-09-07 23:38:26 +02:00
#include <etest/etest.hpp>
2016-10-02 15:58:37 +02:00
#include <etk/etk.hpp>
int main(int argc, const char *argv[]) {
// init Google test :
etest::init(argc, argv);
for (int32_t iii=0; iii<argc ; ++iii) {
2017-08-28 00:05:54 +02:00
etk::String data = argv[iii];
2016-04-08 21:52:27 +02:00
if ( data == "-h"
|| data == "--help") {
TEST_PRINT("Help : ");
TEST_PRINT(" ./xxx [options]");
TEST_PRINT(" -h/--help: this help");
exit(0);
}
}
return RUN_ALL_TESTS();
}