[DEV] remove test-debug (move in elog)
This commit is contained in:
parent
60e3d44653
commit
45158a56d8
@ -39,10 +39,10 @@ def create(target, module_name):
|
||||
'toupper',
|
||||
])
|
||||
my_module.add_exclude_file([
|
||||
'debug.h',
|
||||
'debug.hpp',
|
||||
])
|
||||
my_module.add_file_patterns([
|
||||
'*.h',
|
||||
'*.hpp',
|
||||
'*.md',
|
||||
])
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
tools
|
34
lutin_etk.py
34
lutin_etk.py
@ -46,23 +46,23 @@ def create(target, module_name):
|
||||
'etk/archive/Zip.cpp'])
|
||||
|
||||
my_module.add_header_file([
|
||||
'etk/etk.h',
|
||||
'etk/types.h',
|
||||
'etk/stdTools.h',
|
||||
'etk/tool.h',
|
||||
'etk/Noise.h',
|
||||
'etk/Color.h',
|
||||
'etk/Hash.h',
|
||||
'etk/math/Matrix2.h',
|
||||
'etk/math/Matrix4.h',
|
||||
'etk/math/Vector2D.h',
|
||||
'etk/math/Vector3D.h',
|
||||
'etk/math/Vector4D.h',
|
||||
'etk/os/Fifo.h',
|
||||
'etk/os/FSNode.h',
|
||||
'etk/os/FSNodeRight.h',
|
||||
'etk/archive/Archive.h',
|
||||
'etk/archive/Zip.h'])
|
||||
'etk/etk.hpp',
|
||||
'etk/types.hpp',
|
||||
'etk/stdTools.hpp',
|
||||
'etk/tool.hpp',
|
||||
'etk/Noise.hpp',
|
||||
'etk/Color.hpp',
|
||||
'etk/Hash.hpp',
|
||||
'etk/math/Matrix2.hpp',
|
||||
'etk/math/Matrix4.hpp',
|
||||
'etk/math/Vector2D.hpp',
|
||||
'etk/math/Vector3D.hpp',
|
||||
'etk/math/Vector4D.hpp',
|
||||
'etk/os/Fifo.hpp',
|
||||
'etk/os/FSNode.hpp',
|
||||
'etk/os/FSNodeRight.hpp',
|
||||
'etk/archive/Archive.hpp',
|
||||
'etk/archive/Zip.hpp'])
|
||||
|
||||
# build in C++ mode
|
||||
my_module.compile_version("c++", 2011)
|
||||
|
19
monk_etk.py
19
monk_etk.py
@ -1,19 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
import monkModule as module
|
||||
import monkTools as tools
|
||||
|
||||
def get_desc():
|
||||
return "e-tk : Ewol tool kit"
|
||||
|
||||
|
||||
def create():
|
||||
# module name is 'edn' and type binary.
|
||||
myModule = module.Module(__file__, 'etk', 'LIBRARY')
|
||||
# enable doculentation :
|
||||
myModule.set_website("http://heeroyui.github.io/etk/")
|
||||
myModule.set_website_sources("http://github.com/heeroyui/etk/")
|
||||
myModule.set_path(tools.get_current_path(__file__) + "/etk/")
|
||||
myModule.set_path_general_doc(tools.get_current_path(__file__) + "/doc/")
|
||||
# add the currrent module at the
|
||||
return myModule
|
||||
|
@ -1,40 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.module as module
|
||||
import lutin.tools as tools
|
||||
import lutin.debug as debug
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_sub_type():
|
||||
return "TEST"
|
||||
|
||||
def get_desc():
|
||||
return "basic debug log for test"
|
||||
|
||||
def get_licence():
|
||||
return "APACHE-2"
|
||||
|
||||
def get_compagny_type():
|
||||
return "com"
|
||||
|
||||
def get_compagny_name():
|
||||
return "atria-soft"
|
||||
|
||||
def get_maintainer():
|
||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||
|
||||
def create(target, module_name):
|
||||
my_module = module.Module(__file__, module_name, get_type())
|
||||
my_module.add_src_file([
|
||||
'test-debug/debug.cpp'
|
||||
])
|
||||
my_module.add_header_file([
|
||||
'test-debug/debug.h'
|
||||
])
|
||||
my_module.add_depend('etk')
|
||||
my_module.add_path(tools.get_current_path(__file__))
|
||||
return my_module
|
||||
|
||||
|
@ -1,13 +0,0 @@
|
||||
/** @file
|
||||
* @author Edouard DUPIN
|
||||
* @copyright 2011, Edouard DUPIN, all right reserved
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#include <test-debug/debug.h>
|
||||
|
||||
int32_t test::getLogId() {
|
||||
static int32_t g_val = elog::registerInstance("test");
|
||||
return g_val;
|
||||
}
|
||||
|
@ -1,45 +0,0 @@
|
||||
/** @file
|
||||
* @author Edouard DUPIN
|
||||
* @copyright 2011, Edouard DUPIN, all right reserved
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#include <etk/types.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <elog/log.h>
|
||||
|
||||
namespace test {
|
||||
int32_t getLogId();
|
||||
};
|
||||
|
||||
#define TEST_BASE(info,data) ELOG_BASE(test::getLogId(),info,data)
|
||||
|
||||
#define TEST_PRINT(data) TEST_BASE(-1, data)
|
||||
#define TEST_CRITICAL(data) TEST_BASE(1, data)
|
||||
#define TEST_ERROR(data) TEST_BASE(2, data)
|
||||
#define TEST_WARNING(data) TEST_BASE(3, data)
|
||||
#ifdef DEBUG
|
||||
#define TEST_INFO(data) TEST_BASE(4, data)
|
||||
#define TEST_DEBUG(data) TEST_BASE(5, data)
|
||||
#define TEST_VERBOSE(data) TEST_BASE(6, data)
|
||||
#define TEST_TODO(data) TEST_BASE(4, "TODO : " << data)
|
||||
#else
|
||||
#define TEST_INFO(data) do { } while(false)
|
||||
#define TEST_DEBUG(data) do { } while(false)
|
||||
#define TEST_VERBOSE(data) do { } while(false)
|
||||
#define TEST_TODO(data) do { } while(false)
|
||||
#endif
|
||||
|
||||
#define TEST_HIDDEN(data) do { } while(false)
|
||||
|
||||
#define TEST_ASSERT(cond,data) \
|
||||
do { \
|
||||
if (!(cond)) { \
|
||||
TEST_CRITICAL(data); \
|
||||
assert(!#cond); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user