From 710be9e3557f01ac1c1967b9210149cad6bd527d Mon Sep 17 00:00:00 2001 From: Compilenix Date: Fri, 6 May 2016 09:03:18 +0200 Subject: [PATCH] Added tests for "averages-count" --- CMakeLists.txt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd051dd..c6c334a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ elseif(COMPILER_SUPPORTS_CXX0X) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") else() message(FATAL_ERROR -"Compiler ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} has no C++11 support.") + "Compiler ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} has no C++11 support.") endif() # generate header file to handle version @@ -135,6 +135,22 @@ if(BUILD_TESTING) COMMAND tmux-mem-cpu-load -m 2 ) + add_test(NAME averages_count_0 + COMMAND tmux-mem-cpu-load -a 0 + ) + + add_test(NAME averages_count_1 + COMMAND tmux-mem-cpu-load -a 1 + ) + + add_test(NAME averages_count_2 + COMMAND tmux-mem-cpu-load -a 2 + ) + + add_test(NAME averages_count_3 + COMMAND tmux-mem-cpu-load -a 3 + ) + set_tests_properties(usage invalid_status_interval invalid_graph_lines