comparison tests/CMakeLists.txt @ 0:6ce4443e7545

Add the draft of an API to collect statistics on LXC
author Louis Opter <kalessin@kalessin.fr>
date Wed, 29 Dec 2010 23:28:14 +0100
parents
children 50215911acb3
comparison
equal deleted inserted replaced
-1:000000000000 0:6ce4443e7545
1 # This is fairly limited for now, this will require more work to test all cases
2 # like:
3 # - cgroups are not mounted;
4 # - there is no containers running.
5
6 MACRO(ADD_LXCSTATS_TEST TEST)
7 ADD_EXECUTABLE(test_${TEST} ${TEST}.c)
8 TARGET_LINK_LIBRARIES(test_${TEST} lxcstats)
9 ADD_TEST(${TEST} test_${TEST})
10 ENDMACRO(ADD_LXCSTATS_TEST TEST)
11
12 SET(TESTS
13 close
14 open
15 read_file
16 read_big_file
17 span_containers
18 )
19
20 FOREACH(I ${TESTS})
21 ADD_LXCSTATS_TEST(${I})
22 ENDFOREACH(I ${TESTS})