view tests/CMakeLists.txt @ 12:dbf24a82f625 default tip

Fix doxygen comments and add a Doxyfile
author Louis Opter <kalessin@kalessin.fr>
date Fri, 07 Jan 2011 21:49:31 +0100
parents 8339ab15527d
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})