view tests/CMakeLists.txt @ 7:8339ab15527d

Add running/stopped containers global statistics and refactor some things
author Louis Opter <louis@dotcloud.com>
date Sat, 01 Jan 2011 17:46:40 +0100
parents 50215911acb3
children
line wrap: on
line source

# This is fairly limited for now, this will require more work to test all cases
# like:
# - cgroups are not mounted;
# - there is no containers running.

MACRO(ADD_LXCSTATS_TEST TEST)
    ADD_EXECUTABLE(test_${TEST} ${TEST}.c)
    TARGET_LINK_LIBRARIES(test_${TEST} lxcstats)
    ADD_TEST(${TEST} test_${TEST})
ENDMACRO(ADD_LXCSTATS_TEST TEST)

SET(TESTS
    close
    container_count
    open
    read_file
    read_big_file
    span_containers
    strsplit
   )

FOREACH(I ${TESTS})
    ADD_LXCSTATS_TEST(${I})
ENDFOREACH(I ${TESTS})