view tests/CMakeLists.txt @ 4:50215911acb3

Add a strsplit() function and stop to build probes into a separate library
author Louis Opter <louis@dotcloud.com>
date Sat, 01 Jan 2011 16:01:19 +0100
parents 6ce4443e7545
children 8339ab15527d
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
    open
    read_file
    read_big_file
    span_containers
    strsplit
   )

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