[DEV] update etk and doxy
This commit is contained in:
parent
58fff5ec37
commit
ae8598ab35
14
doxy_exml.py
14
doxy_exml.py
@ -10,9 +10,21 @@ def create(target, module_name):
|
||||
my_module.set_title("exml: Ewol XML parser")
|
||||
my_module.set_website("http://atria-soft.github.io/" + module_name)
|
||||
my_module.set_website_sources("http://github.com/atria-soft/" + module_name)
|
||||
my_module.set_path(os.path.join(tools.get_current_path(__file__), module_name))
|
||||
my_module.add_path([
|
||||
module_name,
|
||||
])
|
||||
my_module.add_module_depend([
|
||||
'etk'
|
||||
])
|
||||
my_module.add_exclude_symbols([
|
||||
'*operator<<*',
|
||||
])
|
||||
my_module.add_exclude_file([
|
||||
'debug.h',
|
||||
])
|
||||
my_module.add_file_patterns([
|
||||
'*.h',
|
||||
'*.md',
|
||||
])
|
||||
|
||||
return my_module
|
@ -10,6 +10,7 @@
|
||||
#include <vector>
|
||||
#include <gtest/gtest.h>
|
||||
#include <etk/os/FSNode.h>
|
||||
#include <etk/etk.h>
|
||||
|
||||
//#include "exmlTestDocument.h"
|
||||
#include "exmlTestElement.h"
|
||||
@ -24,39 +25,17 @@ int main(int argc, const char *argv[]) {
|
||||
// init Google test :
|
||||
::testing::InitGoogleTest(&argc, const_cast<char **>(argv));
|
||||
// the only one init for etk:
|
||||
elog::setLevel(elog::logLevelNone);
|
||||
etk::init(argc, argv);
|
||||
for (int32_t iii=0; iii<argc ; ++iii) {
|
||||
std::string data = argv[iii];
|
||||
if (data == "-l0") {
|
||||
elog::setLevel(elog::logLevelNone);
|
||||
} else if (data == "-l1") {
|
||||
elog::setLevel(elog::logLevelCritical);
|
||||
} else if (data == "-l2") {
|
||||
elog::setLevel(elog::logLevelError);
|
||||
} else if (data == "-l3") {
|
||||
elog::setLevel(elog::logLevelWarning);
|
||||
} else if (data == "-l4") {
|
||||
elog::setLevel(elog::logLevelInfo);
|
||||
} else if (data == "-l5") {
|
||||
elog::setLevel(elog::logLevelDebug);
|
||||
} else if (data == "-l6") {
|
||||
elog::setLevel(elog::logLevelVerbose);
|
||||
} else if ( data == "-h"
|
||||
if ( data == "-h"
|
||||
|| data == "--help") {
|
||||
std::cout << "Help : " <<std::endl;
|
||||
std::cout << " ./xxx [options]" <<std::endl;
|
||||
std::cout << " -l0: debug None" <<std::endl;
|
||||
std::cout << " -l1: debug Critical" <<std::endl;
|
||||
std::cout << " -l2: debug Error" <<std::endl;
|
||||
std::cout << " -l3: debug Warning" <<std::endl;
|
||||
std::cout << " -l4: debug Info" <<std::endl;
|
||||
std::cout << " -l5: debug Debug" <<std::endl;
|
||||
std::cout << " -l6: debug Verbose" <<std::endl;
|
||||
std::cout << " -h/--help: this help" <<std::endl;
|
||||
TEST_PRINT("Help : ");
|
||||
TEST_PRINT(" ./xxx [options]");
|
||||
TEST_PRINT(" -h/--help: this help");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
etk::setArgZero(argv[0]);
|
||||
etk::initDefaultFolder("exml_test");
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user