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