Skip to content

Commit

Permalink
add clean for tools unit tests support and modifications of translato…
Browse files Browse the repository at this point in the history
…rTests
  • Loading branch information
Valentin Noel committed Jul 17, 2013
1 parent 039fff4 commit bed57a9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
25 changes: 25 additions & 0 deletions libraries/basicElement/tests/tools/toolsTests.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#define BOOST_TEST_MODULE qc_basic_element_tools

#include <boost/test/unit_test.hpp>
#include <Tools/ElementTranslator.hpp>

using namespace boost::unit_test;
namespace be = basic_element;
namespace trt = basic_element::translator_tool;

boost::shared_ptr<common::formatters::Formatter> formatter( common::formatters::Formatter::get() );
boost::shared_ptr<common::Color> color( common::Color::get() );

BOOST_AUTO_TEST_SUITE( basic_element_test_suite02 )

BOOST_AUTO_TEST_CASE( basic_element_init )
{
formatter->init_logging();
color->enable();
}

BOOST_AUTO_TEST_SUITE_END()

#include "translatorTests.hpp"
// #include "mapTests.hpp"
// #include "rangeTests.hpp"
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
#define BOOST_TEST_MODULE qc_basic_element

#include <boost/test/unit_test.hpp>

#include <Tools/ElementTranslator.hpp>

using namespace boost::unit_test;
namespace be = basic_element;
namespace trt = basic_element::translator_tool;

boost::shared_ptr<common::formatters::Formatter> formatter( common::formatters::Formatter::get() );
boost::shared_ptr<common::Color> color( common::Color::get() );

BOOST_AUTO_TEST_SUITE( basic_element_test_suite02 )
BOOST_AUTO_TEST_SUITE( basic_element_test_translator )

BOOST_AUTO_TEST_CASE( basic_element_memory_copy )
{
LOG_INFO( "\n>>> basic_element_memory_copy <<<" );
formatter->init_logging();
color->enable();

{
LOG_INFO( "\n === memory copy ( 1 byte ) ===" );
char data[] = { 0x10 };
Expand Down

0 comments on commit bed57a9

Please sign in to comment.