Commit 8b2ff379 authored by Marco Amagliani's avatar Marco Amagliani

test system: change to redirect all output log files (reform_deb_out.txt,...

test system: change to redirect all output log files (reform_deb_out.txt, std::cerr and std::cout) to a unique file called out.log.
Changed all references in the test sytem in such a way to use the new file.
std::cerr and std::cout redirect to the new file, instead the debug system copies most of its output also on cerr, so the new file will contain mst of the information.

[git-p4: depot-paths = "//ReForm/ReForm/main/Base/": change = 13865]
parent 9602f27e
...@@ -4,6 +4,7 @@ set(my_headers ...@@ -4,6 +4,7 @@ set(my_headers
${CMAKE_CURRENT_SOURCE_DIR}/types.hh ${CMAKE_CURRENT_SOURCE_DIR}/types.hh
${CMAKE_CURRENT_SOURCE_DIR}/ReadValuesT.hh ${CMAKE_CURRENT_SOURCE_DIR}/ReadValuesT.hh
${CMAKE_CURRENT_SOURCE_DIR}/StreamContainerT.hh ${CMAKE_CURRENT_SOURCE_DIR}/StreamContainerT.hh
${CMAKE_CURRENT_SOURCE_DIR}/TestDefault.hh
PARENT_SCOPE PARENT_SCOPE
) )
......
...@@ -44,7 +44,7 @@ struct TimeCompare : public DoubleCompare ...@@ -44,7 +44,7 @@ struct TimeCompare : public DoubleCompare
// Check the time. // Check the time.
LogValueT<double, TimeCompare> LogValueT<double, TimeCompare>
chk_time(2, "Time", "Test time =", TimeCompare(2), "out.log"); chk_time(2, "Time", "Test time =", TimeCompare(2), Test::Default::LOG_FILENAME);
}//namespace Test }//namespace Test
}//namespace Checksum }//namespace Checksum
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#ifdef TEST_ON #ifdef TEST_ON
#include "IChecksum.hh" #include "IChecksum.hh"
#include "Base/Debug/DebDefault.hh" #include "TestDefault.hh"
#include <vector> #include <vector>
...@@ -84,7 +84,7 @@ struct Count ...@@ -84,7 +84,7 @@ struct Count
/*! /*!
Generic Checksum class to compare data that can be read from a output file Generic Checksum class to compare data that can be read from a output file
(default Debug::Default::LOG_FILENAME). It searches all occurrences of a string (default Test::Default::LOG_FILENAME). It searches all occurrences of a string
in the file and reads the next field to get the checksum value. in the file and reads the next field to get the checksum value.
If ValueT == Count it simply counts the number of occurrences of the search string. If ValueT == Count it simply counts the number of occurrences of the search string.
*/ */
...@@ -100,7 +100,7 @@ public: ...@@ -100,7 +100,7 @@ public:
const char* _name, //!<[in] Checksum name. const char* _name, //!<[in] Checksum name.
const char* _key, //!<[in] String to search in the output file. const char* _key, //!<[in] String to search in the output file.
const CompareT& _comp = CompareT(), //!<[in] Comparison function. const CompareT& _comp = CompareT(), //!<[in] Comparison function.
const char* _flnm = Debug::Default::LOG_FILENAME const char* _flnm = Test::Default::LOG_FILENAME
//*!<[in] File to parse to get the information. //*!<[in] File to parse to get the information.
); );
......
// (C) Copyright 2016 by Autodesk, Inc.
//
// The information contained herein is confidential, proprietary
// to Autodesk, Inc., and considered a trade secret as defined
// in section 499C of the penal code of the State of California.
// Use of this information by anyone other than authorized
// employees of Autodesk, Inc. is granted only under a written
// non-disclosure agreement, expressly prescribing the scope
// and manner of such use.
#ifndef BASE_TESTDEFAULT_HH_INCLUDE
#define BASE_TESTDEFAULT_HH_INCLUDE
namespace Test {
namespace Default {
const char* const LOG_FILENAME = "out.txt";
}//Default
}//Debug
#endif//BASE_TESTDEFAULT_HH_INCLUDE
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment