[DEV] add test software
This commit is contained in:
parent
5158a7ae8e
commit
7b5c575bb0
32
exml/EXmlTest.cpp
Normal file
32
exml/EXmlTest.cpp
Normal file
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @author Edouard DUPIN
|
||||
*
|
||||
* @copyright 2011, Edouard DUPIN, all right reserved
|
||||
*
|
||||
* @license BSD v3 (see license file)
|
||||
*/
|
||||
|
||||
#include <exml/EXmlTest.h>
|
||||
#include <etk/Debug.h>
|
||||
#include <exml/debug.h>
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
GeneralDebugSetLevel(etk::LOG_LEVEL_VERBOSE);
|
||||
exml::EXmlDocument doc;
|
||||
etk::UString testString = ""
|
||||
"< exemple\n >\n"
|
||||
" <ex2 ploppp-plpl:erer=\"dfsdfsdfsdf\" lkmjmlk=\"156235\" sdfsdf=456321 />\n"
|
||||
" <exlkjl-_dsfg./>\n"
|
||||
" <ex2>\n"
|
||||
" Text example ...\n"
|
||||
// " <!--a really simple comment -- !!! [[] ] < exemple\n -->\n"
|
||||
// " <![CDATA[CDATA_EXEMPLE slkdjf l ksjdflks fsd s,dn fsfn > < < S!! ]]>\n"
|
||||
" </ex2>\n"
|
||||
"</exemple>\n";
|
||||
EXML_DEBUG("start parsing : \n" << testString);
|
||||
doc.Parse(testString);
|
||||
doc.Display();
|
||||
return false;
|
||||
}
|
||||
|
22
exml/EXmlTest.h
Normal file
22
exml/EXmlTest.h
Normal file
@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @author Edouard DUPIN
|
||||
*
|
||||
* @copyright 2011, Edouard DUPIN, all right reserved
|
||||
*
|
||||
* @license BSD v3 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __ETK_XML_TEST_H__
|
||||
#define __ETK_XML_TEST_H__
|
||||
|
||||
#include <exml/EXmlNode.h>
|
||||
#include <exml/EXmlDocument.h>
|
||||
|
||||
namespace exml
|
||||
{
|
||||
bool Test(void);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
34
lutin_exmltest.py
Normal file
34
lutin_exmltest.py
Normal file
@ -0,0 +1,34 @@
|
||||
#!/usr/bin/python
|
||||
import lutinModule
|
||||
import lutinTools
|
||||
import datetime
|
||||
|
||||
def Create(target):
|
||||
# module name is 'edn' and type binary.
|
||||
myModule = lutinModule.module(__file__, 'exmltest', 'PACKAGE')
|
||||
|
||||
# add the file to compile:
|
||||
myModule.AddSrcFile([
|
||||
'exml/EXmlTest.cpp'])
|
||||
|
||||
myModule.AddModuleDepend('exml')
|
||||
|
||||
now = datetime.datetime.now()
|
||||
versionID=str(now.year-2012)+"."+str(now.month)+"."+str(now.day)
|
||||
|
||||
# set the package properties :
|
||||
myModule.pkgSet("VERSION", versionID)
|
||||
myModule.pkgSet("COMPAGNY_TYPE", "org")
|
||||
myModule.pkgSet("COMPAGNY_NAME", "Edouard DUPIN")
|
||||
myModule.pkgSet("MAINTAINER", ["Mr DUPIN Edouard <yui.heero@gmail.com>"])
|
||||
myModule.pkgSet("SECTION", ["Development"])
|
||||
myModule.pkgSet("PRIORITY", "optional")
|
||||
myModule.pkgSet("DESCRIPTION", "E_xml tester soft")
|
||||
myModule.pkgSet("NAME", "exml_tester")
|
||||
|
||||
myModule.pkgAddRight("WRITE_EXTERNAL_STORAGE")
|
||||
myModule.pkgAddRight("SET_ORIENTATION")
|
||||
|
||||
# add the currrent module at the
|
||||
return myModule
|
||||
|
Loading…
x
Reference in New Issue
Block a user