From 7b5c575bb00efcc74dac3f369c91b966a87d79b7 Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Fri, 21 Jun 2013 20:56:22 +0200 Subject: [PATCH] [DEV] add test software --- exml/EXmlTest.cpp | 32 ++++++++++++++++++++++++++++++++ exml/EXmlTest.h | 22 ++++++++++++++++++++++ lutin_exmltest.py | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 exml/EXmlTest.cpp create mode 100644 exml/EXmlTest.h create mode 100644 lutin_exmltest.py diff --git a/exml/EXmlTest.cpp b/exml/EXmlTest.cpp new file mode 100644 index 0000000..87f0311 --- /dev/null +++ b/exml/EXmlTest.cpp @@ -0,0 +1,32 @@ +/** + * @author Edouard DUPIN + * + * @copyright 2011, Edouard DUPIN, all right reserved + * + * @license BSD v3 (see license file) + */ + +#include +#include +#include + +int main(int argc, const char *argv[]) +{ + GeneralDebugSetLevel(etk::LOG_LEVEL_VERBOSE); + exml::EXmlDocument doc; + etk::UString testString = "" + "< exemple\n >\n" + " \n" + " \n" + " \n" + " Text example ...\n" +// " \n" +// " < < S!! ]]>\n" + " \n" + "\n"; + EXML_DEBUG("start parsing : \n" << testString); + doc.Parse(testString); + doc.Display(); + return false; +} + diff --git a/exml/EXmlTest.h b/exml/EXmlTest.h new file mode 100644 index 0000000..0463781 --- /dev/null +++ b/exml/EXmlTest.h @@ -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 +#include + +namespace exml +{ + bool Test(void); +}; + + +#endif + diff --git a/lutin_exmltest.py b/lutin_exmltest.py new file mode 100644 index 0000000..101e9a7 --- /dev/null +++ b/lutin_exmltest.py @@ -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 "]) + 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 +