exml/test/main.cpp

26 lines
590 B
C++

/** @file
* @author Edouard DUPIN
* @copyright 2014, Edouard DUPIN, all right reserved
* @license MPL v2.0 (see license file)
*/
#include <test-debug/debug.hpp>
#include <etest/etest.hpp>
#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) {
etk::String data = argv[iii];
if ( data == "-h"
|| data == "--help") {
TEST_PRINT("Help : ");
TEST_PRINT(" ./xxx [options]");
TEST_PRINT(" -h/--help: this help");
exit(0);
}
}
return RUN_ALL_TESTS();
}