RUNNER_PERF_TEST_END
End time measurement.
+--Message macros---------------------------------------------------------------
+Used to print error messages during test run time.
+
+dpl-test-framework
+ test_runner.h
+ RUNNER_ERROR_MSG
+ Print error message using red color.
+
--Collectors-------------------------------------------------------------------
Collectors are classes which collect test results. Each class does it differently.
Collectors can be registered by --output parameter (see HOW TO RUN section) but
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011-2014 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <chrono>
#include <cstring>
+#include <iostream>
#include <list>
#include <map>
#include <set>
#include <dpl/atomic.h>
#include <dpl/availability.h>
+#include <dpl/colors.h>
#include <dpl/gdbbacktrace.h>
#include <dpl/singleton.h>
#include <dpl/test/test_results_collector.h>
DPL::Test::TestRunnerSingleton::Instance().endPerformanceTestTime(); \
} while (0)
+/**
+ * MSG MACROS
+ *
+ * Use these macros to print error messages during test run time
+ */
+
+#define RUNNER_ERROR_MSG(message) \
+ do { \
+ std::cerr << DPL::Colors::Text::RED_BEGIN << message \
+ << DPL::Colors::Text::RED_END << std::endl; \
+ } while (0)
#endif // DPL_TEST_RUNNER_H