diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-08-12 20:50:00 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-08-12 20:50:00 +0200 |
commit | 777681dcbdf18493320dd7b94fccd5c6faee9455 (patch) | |
tree | b8597f5d79f8ef33bffbf33f3de2548cc51d4c5c /test/correctness/tester.hpp | |
parent | 97bcf77d4bc9b31e32a8785787e0497ac5440e44 (diff) | |
parent | d67fd6604b4a6584c4f9e856057fcc8076ce377d (diff) |
Merge branch 'master' into im_to_col
Diffstat (limited to 'test/correctness/tester.hpp')
-rw-r--r-- | test/correctness/tester.hpp | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/test/correctness/tester.hpp b/test/correctness/tester.hpp index e544f776..caf03787 100644 --- a/test/correctness/tester.hpp +++ b/test/correctness/tester.hpp @@ -22,7 +22,7 @@ #include <vector> #include <memory> -#include "utilities/utilities.hpp" +#include "test/test_utilities.hpp" // The libraries #ifdef CLBLAST_REF_CLBLAS @@ -153,20 +153,38 @@ template <typename T, typename U> const size_t Tester<T,U>::kResultsPerLine = si template <typename T, typename U> const float Tester<T,U>::kStatusError = -1.0f; // Constants holding start and end strings for terminal-output in colour -template <typename T, typename U> const std::string Tester<T,U>::kPrintError = "\x1b[31m"; -template <typename T, typename U> const std::string Tester<T,U>::kPrintSuccess = "\x1b[32m"; -template <typename T, typename U> const std::string Tester<T,U>::kPrintWarning = "\x1b[35m"; -template <typename T, typename U> const std::string Tester<T,U>::kPrintMessage = "\x1b[1m"; -template <typename T, typename U> const std::string Tester<T,U>::kPrintEnd = "\x1b[0m"; +#if defined(_WIN32) + template <typename T, typename U> const std::string Tester<T,U>::kPrintError = ""; + template <typename T, typename U> const std::string Tester<T,U>::kPrintSuccess = ""; + template <typename T, typename U> const std::string Tester<T,U>::kPrintWarning = ""; + template <typename T, typename U> const std::string Tester<T,U>::kPrintMessage = ""; + template <typename T, typename U> const std::string Tester<T,U>::kPrintEnd = ""; +#else + template <typename T, typename U> const std::string Tester<T,U>::kPrintError = "\x1b[31m"; + template <typename T, typename U> const std::string Tester<T,U>::kPrintSuccess = "\x1b[32m"; + template <typename T, typename U> const std::string Tester<T,U>::kPrintWarning = "\x1b[35m"; + template <typename T, typename U> const std::string Tester<T,U>::kPrintMessage = "\x1b[1m"; + template <typename T, typename U> const std::string Tester<T,U>::kPrintEnd = "\x1b[0m"; +#endif // Sets the output error coding -template <typename T, typename U> const std::string Tester<T,U>::kSuccessData = "\x1b[32m:\x1b[0m"; // success -template <typename T, typename U> const std::string Tester<T,U>::kSuccessStatus = "\x1b[32m.\x1b[0m"; // success -template <typename T, typename U> const std::string Tester<T,U>::kErrorData = "\x1b[31mX\x1b[0m"; // error -template <typename T, typename U> const std::string Tester<T,U>::kErrorStatus = "\x1b[31m/\x1b[0m"; // error -template <typename T, typename U> const std::string Tester<T,U>::kSkippedCompilation = "\x1b[35m\\\x1b[0m"; // warning -template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedPrecision = "\x1b[35mo\x1b[0m"; // warning -template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedReference = "\x1b[35m-\x1b[0m"; // warning +#if defined(_WIN32) + template <typename T, typename U> const std::string Tester<T,U>::kSuccessData = ":"; // success + template <typename T, typename U> const std::string Tester<T,U>::kSuccessStatus = "."; // success + template <typename T, typename U> const std::string Tester<T,U>::kErrorData = "X"; // error + template <typename T, typename U> const std::string Tester<T,U>::kErrorStatus = "/"; // error + template <typename T, typename U> const std::string Tester<T,U>::kSkippedCompilation = "\\"; // warning + template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedPrecision = "o"; // warning + template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedReference = "-"; // warning +#else + template <typename T, typename U> const std::string Tester<T,U>::kSuccessData = "\x1b[32m:\x1b[0m"; // success + template <typename T, typename U> const std::string Tester<T,U>::kSuccessStatus = "\x1b[32m.\x1b[0m"; // success + template <typename T, typename U> const std::string Tester<T,U>::kErrorData = "\x1b[31mX\x1b[0m"; // error + template <typename T, typename U> const std::string Tester<T,U>::kErrorStatus = "\x1b[31m/\x1b[0m"; // error + template <typename T, typename U> const std::string Tester<T,U>::kSkippedCompilation = "\x1b[35m\\\x1b[0m"; // warning + template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedPrecision = "\x1b[35mo\x1b[0m"; // warning + template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedReference = "\x1b[35m-\x1b[0m"; // warning +#endif // ================================================================================================= // Below are the non-member functions (separated because of otherwise required partial class |