Skip to contentSkip to conversation

Add new testcases for cgroup

PATCH In review Shi Weihua 3 participants 5 messages Aug 26, 2009 – Aug 27, 2009

lore
Share & tools
lore

Shi Weihua

author
#0 lore raw

PATCH 1/1 Add new testcases for cgroup

We has created some testcases for cgroup in the last year.
There are total 194 testcases that have been added. These testcases contain the basis operation test, part functionality test and stress test of cgroup.

How to run this test:

	# runltp -f controllers

Result:
Now, we start the test for cgroup...

cgroup_test_fj    1  TPASS  :  case1(function   1 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case2(function   1 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case3(function   1 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case4(function   1 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case5(function   1 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case6(function   1 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case7(function   1 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case8(function   1 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case9(function   1 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case10(function  2 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case11(function  2 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case12(function  2 1 2 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case13(function  2 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case14(function  2 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case15(function  2 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case16(function  2 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case17(function  2 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case18(function  2 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case19(function  2 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case20(function  3 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case21(function  3 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case22(function  3 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case23(function  3 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case24(function  3 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case25(function  3 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case26(function  3 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case27(function  3 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case28(function  3 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case29(function  4 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case30(function  4 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case31(function  4 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case32(function  4 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case33(function  4 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case34(function  4 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case35(function  4 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case36(function  4 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case37(function  4 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case38(function  5 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case39(function  5 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case40(function  5 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case41(function  5 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case42(function  5 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case43(function  5 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case44(function  5 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case45(function  5 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case46(function  5 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case47(function  6 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case48(function  6 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case49(function  6 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case50(function  6 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case51(function  6 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case52(function  6 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case53(function  6 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case54(function  6 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case55(function  6 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case56(function  7 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case57(function  7 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case58(function  7 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case59(function  7 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case60(function  7 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case61(function  7 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case62(function  7 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case63(function  7 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case64(function  7 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case65(function  8 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case66(function  9 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case67(function  9 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case68(function  9 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case69(function  9 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case70(function  9 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case71(function  9 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case72(function  9 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case73(function  9 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case74(function  9 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case75(function  10 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case76(function  11 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case77(function  11 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case78(function  11 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case79(function  11 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case80(function  11 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case81(function  11 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case82(function  11 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case83(function  11 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case84(function  11 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case85(function  12 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case86(function  12 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case87(function  12 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case88(function  12 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case89(function  12 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case90(function  12 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case91(function  12 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case92(function  12 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case93(function  12 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case94(function  1 1 1 1 1 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case95(function  1 1 1 1 1 2 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case96(function  1 1 1 1 1 2 3 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case97(function  1 1 1 1 1 2 5 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case98(function  1 1 1 1 1 3 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case99(function  1 1 1 1 1 3 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case100(function 1 1 1 1 1 3 4 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case101(function 1 1 1 1 1 4 3 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case102(function 1 1 1 1 1 4 5 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case103(function 1 1 1 1 2 1 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case104(function 1 1 1 1 1 1 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case105(function 1 1 1 1 1 1 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case106(function 1 1 1 1 1 2 3 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case107(function 1 1 1 1 1 2 3 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case108(function 1 1 1 1 1 2 3 2 4)    PASS
cgroup_test_fj    1  TPASS  :  case109(function 1 1 1 1 1 2 3 2 5)    PASS
cgroup_test_fj    1  TPASS  :  case110(function 1 1 1 1 1 2 3 2 6)    PASS
cgroup_test_fj    1  TPASS  :  case111(function 1 1 1 1 1 2 3 2 7)    PASS
cgroup_test_fj    1  TPASS  :  case112(function 1 1 1 1 1 2 3 3 2)    PASS
cgroup_test_fj    1  TPASS  :  case113(function 1 1 1 1 1 2 3 4 2)    PASS
cgroup_test_fj    1  TPASS  :  case114(function 1 1 1 1 1 2 3 5 2)    PASS
cgroup_test_fj    1  TPASS  :  case115(function 1 1 1 1 1 2 3 6 2)    PASS
cgroup_test_fj    1  TPASS  :  case116(function 1 1 1 1 1 2 3 7 2)    PASS
cgroup_test_fj    1  TPASS  :  case117(function 1 1 1 2 1 2 3 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case118(function 1 1 1 3 1 2 3 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case119(function 1 1 1 3 1 2 3 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case120(function 1 1 1 3 1 2 3 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case121(function 1 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case122(function 1 1 1 3 1 2 3 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case123(function 1 1 1 3 1 2 3 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case124(function 1 1 1 3 1 2 3 2 4)    PASS
cgroup_test_fj    1  TPASS  :  case125(function 1 1 1 3 1 2 3 2 5)    PASS
cgroup_test_fj    1  TPASS  :  case126(function 1 1 1 3 1 2 3 2 6)    PASS
cgroup_test_fj    1  TPASS  :  case127(function 1 1 1 3 1 2 3 2 7)    PASS
cgroup_test_fj    1  TPASS  :  case128(function 1 1 1 3 1 2 3 3 1)    PASS
cgroup_test_fj    1  TPASS  :  case129(function 1 1 1 3 1 2 3 3 2)    PASS
cgroup_test_fj    1  TPASS  :  case130(function 1 1 1 3 1 2 3 3 3)    PASS
cgroup_test_fj    1  TPASS  :  case131(function 1 1 1 3 1 2 3 4 2)    PASS
cgroup_test_fj    1  TPASS  :  case132(function 1 1 1 3 1 2 3 5 2)    PASS
cgroup_test_fj    1  TPASS  :  case133(function 1 1 1 3 1 2 3 6 2)    PASS
cgroup_test_fj    1  TPASS  :  case134(function 1 1 1 3 1 2 3 7 2)    PASS
cgroup_test_fj    1  TPASS  :  case135(function2        1)    PASS
cgroup_test_fj    1  TPASS  :  case136(function2        2)    PASS
cgroup_test_fj    1  TPASS  :  case137(function2        3)    PASS
cgroup_test_fj    1  TPASS  :  case138(function2        4)    PASS
cgroup_test_fj    1  TPASS  :  case139(function2        5)    PASS
cgroup_test_fj    1  TPASS  :  case140(function2        6)    PASS
cgroup_test_fj    1  TPASS  :  case141(function2        7)    PASS
cgroup_test_fj    1  TPASS  :  case142(function2        8)    PASS
cgroup_test_fj    1  TPASS  :  case143(function2        9)    PASS
cgroup_test_fj    1  TPASS  :  case144(function2        10)    PASS
cgroup_test_fj    1  TPASS  :  case145(function2        11)    PASS
cgroup_test_fj    1  TPASS  :  case146(function2        12)    PASS
cgroup_test_fj    1  TPASS  :  case147(function2        13)    PASS
cgroup_test_fj    1  TPASS  :  case148(stress   1 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case149(stress   2 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case150(stress   3 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case151(stress   4 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case152(stress   5 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case153(stress   6 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case154(stress   7 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case155(stress   1 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case156(stress   1 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case157(stress   1 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case158(stress   1 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case159(stress   1 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case160(stress   1 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case161(stress   1 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case162(stress   1 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case163(stress   1 1 2 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case164(stress   2 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case165(stress   2 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case166(stress   2 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case167(stress   2 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case168(stress   2 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case169(stress   2 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case170(stress   2 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case171(stress   2 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case172(stress   2 1 2 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case173(stress   4 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case174(stress   4 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case175(stress   4 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case176(stress   4 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case177(stress   5 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case178(stress   5 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case179(stress   5 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case180(stress   5 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case181(stress   5 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case182(stress   5 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case183(stress   5 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case184(stress   5 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case185(stress   5 1 2 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case186(stress   6 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case187(stress   6 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case188(stress   6 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case189(stress   6 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case190(stress   6 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case191(stress   6 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case192(stress   6 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case193(stress   6 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case194(stress   6 1 2 2 2)    PASS
---
 runtest/controllers                                            |    1
 testcases/kernel/controllers/Makefile                          |    2
 testcases/kernel/controllers/cgroup_fj/Makefile                |   19
 testcases/kernel/controllers/cgroup_fj/README                  |   56
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh   |  269 ++++
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh  |  329 +++++
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_proc.c        |   77 +
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_release_agent |   11
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh     |  340 +++++
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases     |  194 +++
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh    |  633 ++++++++++
 testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh   |  135 ++
 12 files changed, 2066 insertions(+)
runtest/controllers +1 -0
diff -urpN ltp-full-20090731.orig/runtest/controllers ltp-full-20090731.cg/runtest/controllers
@@ -1,4 +1,5 @@
 #DESCRIPTION:Resource Management testing
 cgroup		cgroup_regression_test.sh
 memcg		memcg_regression_test.sh
+cgroup_fj	run_cgroup_test_fj.sh
 controllers	test_controllers.sh
testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh +329 -0

329 lines not on this page · raw message

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +269 -0

269 lines not on this page · raw message

testcases/kernel/controllers/cgroup_fj/cgroup_fj_proc.c +77 -0

77 lines not on this page · raw message

testcases/kernel/controllers/cgroup_fj/cgroup_fj_release_agent +11 -0
diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/cgroup_fj/cgroup_fj_release_agent ltp-full-20090731.cg/testcases/kernel/controllers/cgroup_fj/cgroup_fj_release_agent
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+TESTROOT=`pwd`
+
+if [ -e /dev/cgroup/subgroup_1 ]
+then
+	cd /dev/cgroup
+	rmdir -p subgroup_*/ 2>/dev/null
+	rmdir /dev/cgroup/subgroup_* 2> /dev/null
+	cd $TESTROOT
+fi
testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh +340 -0

340 lines not on this page · raw message

testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases +194 -0

194 lines not on this page · raw message

testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh +633 -0

633 lines not on this page · raw message

testcases/kernel/controllers/cgroup_fj/Makefile +19 -0
diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/cgroup_fj/Makefile ltp-full-20090731.cg/testcases/kernel/controllers/cgroup_fj/Makefile
@@ -0,0 +1,19 @@
+CFLAGS += -Wall -O2 -Wextra
+
+SRCS    = $(wildcard *.c)
+TARGETS = $(patsubst %.c,%,$(SRCS))
+
+all:	$(TARGETS)
+
+install:
+
+test:
+	@./run_cgroup_test_fj.sh
+
+clean:
+	rm -f $(TARGETS) *.o
+
+install:
+	@set -e; for i in $(TARGETS) *.sh; do ln -f $$i ../../../bin/$$i ; chmod +x $$i ; done
+	ln -f cgroup_fj_release_agent ../../../bin/cgroup_fj_release_agent
+	ln -f cgroup_fj_testcases ../../../bin/cgroup_fj_testcases 
testcases/kernel/controllers/cgroup_fj/README +56 -0

56 lines not on this page · raw message

testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh +135 -0

135 lines not on this page · raw message

testcases/kernel/controllers/Makefile +2 -0
diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/Makefile ltp-full-20090731.cg/testcases/kernel/controllers/Makefile
@@ -12,6 +12,7 @@ endif
 ifdef CROSS_COMPILE
 ifeq ($(CHECK_CGROUP),cgroup)
 SUBDIRS += cgroup
+SUBDIRS += cgroup_fj
 SUBDIRS += cpuctl
 SUBDIRS += cpuctl_fj
 SUBDIRS += memctl
@@ -24,6 +25,7 @@ endif
 else
 ifeq ($(CHECK_CGROUP),cgroup)
 SUBDIRS += cgroup
+SUBDIRS += cgroup_fj
 else
 $(info "Kernel is not compiled with control cgroup support")
 endif

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 205 lines · Shi Weihua

We has created some testcases for cgroup in the last year.
There are total 194 testcases that have been added. These testcases contain the basis operation test, part functionality test and stress test of cgroup.

How to run this test:

	# runltp -f controllers

Result:
Now, we start the test for cgroup...

cgroup_test_fj    1  TPASS  :  case1(function   1 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case2(function   1 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case3(function   1 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case4(function   1 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case5(function   1 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case6(function   1 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case7(function   1 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case8(function   1 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case9(function   1 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case10(function  2 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case11(function  2 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case12(function  2 1 2 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case13(function  2 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case14(function  2 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case15(function  2 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case16(function  2 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case17(function  2 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case18(function  2 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case19(function  2 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case20(function  3 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case21(function  3 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case22(function  3 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case23(function  3 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case24(function  3 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case25(function  3 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case26(function  3 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case27(function  3 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case28(function  3 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case29(function  4 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case30(function  4 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case31(function  4 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case32(function  4 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case33(function  4 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case34(function  4 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case35(function  4 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case36(function  4 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case37(function  4 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case38(function  5 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case39(function  5 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case40(function  5 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case41(function  5 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case42(function  5 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case43(function  5 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case44(function  5 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case45(function  5 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case46(function  5 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case47(function  6 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case48(function  6 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case49(function  6 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case50(function  6 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case51(function  6 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case52(function  6 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case53(function  6 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case54(function  6 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case55(function  6 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case56(function  7 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case57(function  7 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case58(function  7 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case59(function  7 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case60(function  7 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case61(function  7 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case62(function  7 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case63(function  7 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case64(function  7 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case65(function  8 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case66(function  9 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case67(function  9 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case68(function  9 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case69(function  9 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case70(function  9 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case71(function  9 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case72(function  9 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case73(function  9 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case74(function  9 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case75(function  10 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case76(function  11 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case77(function  11 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case78(function  11 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case79(function  11 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case80(function  11 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case81(function  11 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case82(function  11 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case83(function  11 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case84(function  11 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case85(function  12 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case86(function  12 2 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case87(function  12 1 1 2 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case88(function  12 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case89(function  12 1 1 4 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case90(function  12 1 1 5 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case91(function  12 1 1 6 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case92(function  12 1 1 7 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case93(function  12 1 1 8 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case94(function  1 1 1 1 1 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case95(function  1 1 1 1 1 2 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case96(function  1 1 1 1 1 2 3 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case97(function  1 1 1 1 1 2 5 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case98(function  1 1 1 1 1 3 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case99(function  1 1 1 1 1 3 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case100(function 1 1 1 1 1 3 4 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case101(function 1 1 1 1 1 4 3 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case102(function 1 1 1 1 1 4 5 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case103(function 1 1 1 1 2 1 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case104(function 1 1 1 1 1 1 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case105(function 1 1 1 1 1 1 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case106(function 1 1 1 1 1 2 3 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case107(function 1 1 1 1 1 2 3 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case108(function 1 1 1 1 1 2 3 2 4)    PASS
cgroup_test_fj    1  TPASS  :  case109(function 1 1 1 1 1 2 3 2 5)    PASS
cgroup_test_fj    1  TPASS  :  case110(function 1 1 1 1 1 2 3 2 6)    PASS
cgroup_test_fj    1  TPASS  :  case111(function 1 1 1 1 1 2 3 2 7)    PASS
cgroup_test_fj    1  TPASS  :  case112(function 1 1 1 1 1 2 3 3 2)    PASS
cgroup_test_fj    1  TPASS  :  case113(function 1 1 1 1 1 2 3 4 2)    PASS
cgroup_test_fj    1  TPASS  :  case114(function 1 1 1 1 1 2 3 5 2)    PASS
cgroup_test_fj    1  TPASS  :  case115(function 1 1 1 1 1 2 3 6 2)    PASS
cgroup_test_fj    1  TPASS  :  case116(function 1 1 1 1 1 2 3 7 2)    PASS
cgroup_test_fj    1  TPASS  :  case117(function 1 1 1 2 1 2 3 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case118(function 1 1 1 3 1 2 3 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case119(function 1 1 1 3 1 2 3 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case120(function 1 1 1 3 1 2 3 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case121(function 1 1 1 3 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case122(function 1 1 1 3 1 2 3 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case123(function 1 1 1 3 1 2 3 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case124(function 1 1 1 3 1 2 3 2 4)    PASS
cgroup_test_fj    1  TPASS  :  case125(function 1 1 1 3 1 2 3 2 5)    PASS
cgroup_test_fj    1  TPASS  :  case126(function 1 1 1 3 1 2 3 2 6)    PASS
cgroup_test_fj    1  TPASS  :  case127(function 1 1 1 3 1 2 3 2 7)    PASS
cgroup_test_fj    1  TPASS  :  case128(function 1 1 1 3 1 2 3 3 1)    PASS
cgroup_test_fj    1  TPASS  :  case129(function 1 1 1 3 1 2 3 3 2)    PASS
cgroup_test_fj    1  TPASS  :  case130(function 1 1 1 3 1 2 3 3 3)    PASS
cgroup_test_fj    1  TPASS  :  case131(function 1 1 1 3 1 2 3 4 2)    PASS
cgroup_test_fj    1  TPASS  :  case132(function 1 1 1 3 1 2 3 5 2)    PASS
cgroup_test_fj    1  TPASS  :  case133(function 1 1 1 3 1 2 3 6 2)    PASS
cgroup_test_fj    1  TPASS  :  case134(function 1 1 1 3 1 2 3 7 2)    PASS
cgroup_test_fj    1  TPASS  :  case135(function2        1)    PASS
cgroup_test_fj    1  TPASS  :  case136(function2        2)    PASS
cgroup_test_fj    1  TPASS  :  case137(function2        3)    PASS
cgroup_test_fj    1  TPASS  :  case138(function2        4)    PASS
cgroup_test_fj    1  TPASS  :  case139(function2        5)    PASS
cgroup_test_fj    1  TPASS  :  case140(function2        6)    PASS
cgroup_test_fj    1  TPASS  :  case141(function2        7)    PASS
cgroup_test_fj    1  TPASS  :  case142(function2        8)    PASS
cgroup_test_fj    1  TPASS  :  case143(function2        9)    PASS
cgroup_test_fj    1  TPASS  :  case144(function2        10)    PASS
cgroup_test_fj    1  TPASS  :  case145(function2        11)    PASS
cgroup_test_fj    1  TPASS  :  case146(function2        12)    PASS
cgroup_test_fj    1  TPASS  :  case147(function2        13)    PASS
cgroup_test_fj    1  TPASS  :  case148(stress   1 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case149(stress   2 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case150(stress   3 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case151(stress   4 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case152(stress   5 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case153(stress   6 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case154(stress   7 2 1 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case155(stress   1 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case156(stress   1 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case157(stress   1 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case158(stress   1 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case159(stress   1 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case160(stress   1 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case161(stress   1 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case162(stress   1 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case163(stress   1 1 2 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case164(stress   2 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case165(stress   2 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case166(stress   2 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case167(stress   2 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case168(stress   2 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case169(stress   2 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case170(stress   2 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case171(stress   2 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case172(stress   2 1 2 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case173(stress   4 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case174(stress   4 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case175(stress   4 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case176(stress   4 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case177(stress   5 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case178(stress   5 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case179(stress   5 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case180(stress   5 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case181(stress   5 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case182(stress   5 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case183(stress   5 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case184(stress   5 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case185(stress   5 1 2 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case186(stress   6 1 1 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case187(stress   6 1 1 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case188(stress   6 1 1 2 2)    PASS
cgroup_test_fj    1  TPASS  :  case189(stress   6 1 1 2 3)    PASS
cgroup_test_fj    1  TPASS  :  case190(stress   6 1 2 1 1)    PASS
cgroup_test_fj    1  TPASS  :  case191(stress   6 1 2 1 2)    PASS
cgroup_test_fj    1  TPASS  :  case192(stress   6 1 2 1 3)    PASS
cgroup_test_fj    1  TPASS  :  case193(stress   6 1 2 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case194(stress   6 1 2 2 2)    PASS
Quoted 1 line

Wow. Thatś awesome. Thanks for making this effort in testing those 194 scenarios. Going in August release.

Regards--
Subrata

Quoted 6 lines
---
 runtest/controllers                                            |    1
 testcases/kernel/controllers/Makefile                          |    2
 testcases/kernel/controllers/cgroup_fj/Makefile                |   19
 testcases/kernel/controllers/cgroup_fj/README                  |   56
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh   |  269 ++++
Quoted 8 lines
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh  |  329 +++++
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_proc.c        |   77 +
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_release_agent |   11
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh     |  340 +++++
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_testcases     |  194 +++
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh    |  633 ++++++++++
 testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh   |  135 ++
 12 files changed, 2066 insertions(+)

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw
In reply to Shi Weihua
Quoted 11 lines · Shi Weihua

We has created some testcases for cgroup in the last year.
There are total 194 testcases that have been added. These testcases contain the basis operation test, part functionality test and stress test of cgroup.

How to run this test:

	# runltp -f controllers

Result:
Now, we start the test for cgroup...

cgroup_test_fj    1  TPASS  :  case1(function   1 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case2(function   1 2 1 1 1 2 3 2 1)    PASS

<snip>

Quoted 1 line

cgroup_test_fj 1 TPASS : case93(function 12 1 1 8 1 2 3 2 1) PASS

<snip>

Quoted 63 lines

diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh ltp-full-20090731.cg/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +59 -0
@@ -0,0 +1,269 @@
+#! /bin/sh
+
+################################################################################
+##                                                                            ##
+## Copyright (c) 2009 FUJITSU LIMITED                                         ##
+##                                                                            ##
+## This program is free software;  you can redistribute it and#or modify      ##
+## it under the terms of the GNU General Public License as published by       ##
+## the Free Software Foundation; either version 2 of the License, or          ##
+## (at your option) any later version.                                        ##
+##                                                                            ##
+## This program is distributed in the hope that it will be useful, but        ##
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
+## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
+## for more details.                                                          ##
+##                                                                            ##
+## You should have received a copy of the GNU General Public License          ##
+## along with this program;  if not, write to the Free Software               ##
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA    ##
+##                                                                            ##
+## Author: Shi Weihua <[email protected]>                                  ##
+##                                                                            ##
+################################################################################
+
+subsystem=$1
+remount_use=$2
+noprefix_use=$3	
+release_agent_para=$4
+subgroup_exist=$5
+attach_operation=$6
+remove_operation=$7
+notify_on_release=$8
+release_agent_echo=$9
+
+subsystem_str="";
+remount_use_str="";
+noprefix_use_str="";
+release_agent_para_str="";
+notify_on_release_str="";
+release_agent_str="";
+
+expectted=1;
+
+# Create some processes and move them to cgroups
+pid=0;
+pid2=0;
+
+# not output debug info
+no_debug=0
+
+usage()
+{
+	echo "usage of cgroup_fj_function.sh: "
+	echo "  ./cgroup_fj_function.sh -subsystem -remount_use -noprefix_use -release_agent_para"
+	echo "                          -subgroup_exist -attach_operation -remove_operation"
+	echo "                          -notify_on_release -release_agent_echo"
+	echo "    subsystem's usable number"
+	echo "      1: debug"
+	echo "      2: cpuset"

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh line 69

Quoted 10 lines
testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +10 -0
+	echo "      3: ns"
+	echo "      4: cpu"
+	echo "      5: cpuacct"
+	echo "      6: memory"
+	echo "      7: all"
+	echo "      8: (none)"
+	echo "      9: debug,debug"
+	echo "      10: (nonexistent subsystem), e.g. abc"
+	echo "      11: freezer"
+	echo "      11: devices"

Looks like this should be 12.

Why not just use the subsystem names both to iterate over and to print out? Then it will be a little clearer what test has[n't] passed. e.g.:

SUBSYSTEMS=( debug cpuset ns cpu cpuacct memory debug,debug freezer \
devices nonexistent none all )

Then when you're running the test cases or printing usage you could do:

for SUBSYS in "${SUBSYSTEMS[@]}" ; do

	...

done

Sadly I didn't have a close enough look at all of the code to tell if this is do-able. Is it? If you could similarly map the other numbers it may be easier to read the output and the code.

Cheers,
-Matt Helsley

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#3 lore raw
Quoted 86 lines · Matt Helsley
Quoted 11 lines · Shi Weihua

We has created some testcases for cgroup in the last year.
There are total 194 testcases that have been added. These testcases contain the basis operation test, part functionality test and stress test of cgroup.

How to run this test:

	# runltp -f controllers

Result:
Now, we start the test for cgroup...

cgroup_test_fj    1  TPASS  :  case1(function   1 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case2(function   1 2 1 1 1 2 3 2 1)    PASS

<snip>

Quoted 1 line

cgroup_test_fj 1 TPASS : case93(function 12 1 1 8 1 2 3 2 1) PASS

<snip>

Quoted 67 lines

diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh ltp-full-20090731.cg/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +63 -0
@@ -0,0 +1,269 @@
+#! /bin/sh
+
+################################################################################
+##                                                                            ##
+## Copyright (c) 2009 FUJITSU LIMITED                                         ##
+##                                                                            ##
+## This program is free software;  you can redistribute it and#or modify      ##
+## it under the terms of the GNU General Public License as published by       ##
+## the Free Software Foundation; either version 2 of the License, or          ##
+## (at your option) any later version.                                        ##
+##                                                                            ##
+## This program is distributed in the hope that it will be useful, but        ##
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
+## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
+## for more details.                                                          ##
+##                                                                            ##
+## You should have received a copy of the GNU General Public License          ##
+## along with this program;  if not, write to the Free Software               ##
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA    ##
+##                                                                            ##
+## Author: Shi Weihua <[email protected]>                                  ##
+##                                                                            ##
+################################################################################
+
+subsystem=$1
+remount_use=$2
+noprefix_use=$3	
+release_agent_para=$4
+subgroup_exist=$5
+attach_operation=$6
+remove_operation=$7
+notify_on_release=$8
+release_agent_echo=$9
+
+subsystem_str="";
+remount_use_str="";
+noprefix_use_str="";
+release_agent_para_str="";
+notify_on_release_str="";
+release_agent_str="";
+
+expectted=1;
+
+# Create some processes and move them to cgroups
+pid=0;
+pid2=0;
+
+# not output debug info
+no_debug=0
+
+usage()
+{
+	echo "usage of cgroup_fj_function.sh: "
+	echo "  ./cgroup_fj_function.sh -subsystem -remount_use -noprefix_use -release_agent_para"
+	echo "                          -subgroup_exist -attach_operation -remove_operation"
+	echo "                          -notify_on_release -release_agent_echo"
+	echo "    subsystem's usable number"
+	echo "      1: debug"
+	echo "      2: cpuset"
+	echo "      3: ns"
+	echo "      4: cpu"
+	echo "      5: cpuacct"
+	echo "      6: memory"
Quoted 8 lines

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh line 69

Quoted 6 lines
testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +6 -0
+	echo "      7: all"
+	echo "      8: (none)"
+	echo "      9: debug,debug"
+	echo "      10: (nonexistent subsystem), e.g. abc"
+	echo "      11: freezer"
+	echo "      11: devices"

Looks like this should be 12.

Yes, here should be 12. Sorry for it.
The following small patch fixed it.

---

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +1 -1
diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh ltp-full-20090731/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh
@@ -66,7 +66,7 @@ usage()
 	echo "      9: debug,debug"
 	echo "      10: (nonexistent subsystem), e.g. abc"
 	echo "      11: freezer"
-	echo "      11: devices"
+	echo "      12: devices"
 	echo "    remount_use's usable number"
 	echo "      1: do not use remount in "-o"'s parameter"
 	echo "      2: use it"
Quoted 10 lines

Why not just use the subsystem names both to iterate over and to print out? Then it will be a little clearer what test has[n't] passed. e.g.:

SUBSYSTEMS=( debug cpuset ns cpu cpuacct memory debug,debug freezer \
devices nonexistent none all )

Then when you're running the test cases or printing usage you could do:

Quoted 7 lines

for SUBSYS in "${SUBSYSTEMS[@]}" ; do

	...

done

Sadly I didn't have a close enough look at all of the code to tell if this is do-able. Is it? If you could similarly map the other numbers it may be easier to read the output and the code.

Thanks for your advice. Basically, I agree.
But using strings to instead of number will need one or more weeks, I will do this improvement work base on August Release.

Quoted 6 lines

Cheers,
-Matt Helsley

Signature · 13 lines
Shi Weihua
79955-852


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#4 lore raw
Quoted 96 lines · Shi Weihua
Quoted 86 lines · Matt Helsley
Quoted 11 lines · Shi Weihua

We has created some testcases for cgroup in the last year.
There are total 194 testcases that have been added. These testcases contain the basis operation test, part functionality test and stress test of cgroup.

How to run this test:

	# runltp -f controllers

Result:
Now, we start the test for cgroup...

cgroup_test_fj    1  TPASS  :  case1(function   1 1 1 1 1 2 3 2 1)    PASS
cgroup_test_fj    1  TPASS  :  case2(function   1 2 1 1 1 2 3 2 1)    PASS

<snip>

Quoted 1 line

cgroup_test_fj 1 TPASS : case93(function 12 1 1 8 1 2 3 2 1) PASS

<snip>

Quoted 67 lines

diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh ltp-full-20090731.cg/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +63 -0
@@ -0,0 +1,269 @@
+#! /bin/sh
+
+################################################################################
+##                                                                            ##
+## Copyright (c) 2009 FUJITSU LIMITED                                         ##
+##                                                                            ##
+## This program is free software;  you can redistribute it and#or modify      ##
+## it under the terms of the GNU General Public License as published by       ##
+## the Free Software Foundation; either version 2 of the License, or          ##
+## (at your option) any later version.                                        ##
+##                                                                            ##
+## This program is distributed in the hope that it will be useful, but        ##
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
+## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
+## for more details.                                                          ##
+##                                                                            ##
+## You should have received a copy of the GNU General Public License          ##
+## along with this program;  if not, write to the Free Software               ##
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA    ##
+##                                                                            ##
+## Author: Shi Weihua <[email protected]>                                  ##
+##                                                                            ##
+################################################################################
+
+subsystem=$1
+remount_use=$2
+noprefix_use=$3	
+release_agent_para=$4
+subgroup_exist=$5
+attach_operation=$6
+remove_operation=$7
+notify_on_release=$8
+release_agent_echo=$9
+
+subsystem_str="";
+remount_use_str="";
+noprefix_use_str="";
+release_agent_para_str="";
+notify_on_release_str="";
+release_agent_str="";
+
+expectted=1;
+
+# Create some processes and move them to cgroups
+pid=0;
+pid2=0;
+
+# not output debug info
+no_debug=0
+
+usage()
+{
+	echo "usage of cgroup_fj_function.sh: "
+	echo "  ./cgroup_fj_function.sh -subsystem -remount_use -noprefix_use -release_agent_para"
+	echo "                          -subgroup_exist -attach_operation -remove_operation"
+	echo "                          -notify_on_release -release_agent_echo"
+	echo "    subsystem's usable number"
+	echo "      1: debug"
+	echo "      2: cpuset"
+	echo "      3: ns"
+	echo "      4: cpu"
+	echo "      5: cpuacct"
+	echo "      6: memory"
Quoted 8 lines

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh line 69

Quoted 6 lines
testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +6 -0
+	echo "      7: all"
+	echo "      8: (none)"
+	echo "      9: debug,debug"
+	echo "      10: (nonexistent subsystem), e.g. abc"
+	echo "      11: freezer"
+	echo "      11: devices"

Looks like this should be 12.

Quoted 4 lines

Yes, here should be 12. Sorry for it.
The following small patch fixed it.

Thanks again for this fix.

Regards--
Subrata

Quoted 29 lines

---
diff -urpN ltp-full-20090731.orig/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh ltp-full-20090731/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh

testcases/kernel/controllers/cgroup_fj/cgroup_fj_function.sh +1 -1
@@ -66,7 +66,7 @@ usage()
 	echo "      9: debug,debug"
 	echo "      10: (nonexistent subsystem), e.g. abc"
 	echo "      11: freezer"
-	echo "      11: devices"
+	echo "      12: devices"
 	echo "    remount_use's usable number"
 	echo "      1: do not use remount in "-o"'s parameter"
 	echo "      2: use it"
Quoted 16 lines

Why not just use the subsystem names both to iterate over and to print out? Then it will be a little clearer what test has[n't] passed. e.g.:

SUBSYSTEMS=( debug cpuset ns cpu cpuacct memory debug,debug freezer \
devices nonexistent none all )

Then when you're running the test cases or printing usage you could do:

for SUBSYS in "${SUBSYSTEMS[@]}" ; do

	...

done

Quoted 15 lines
Quoted 3 lines

Sadly I didn't have a close enough look at all of the code to tell if this is do-able. Is it? If you could similarly map the other numbers it may be easier to read the output and the code.

Thanks for your advice. Basically, I agree.
But using strings to instead of number will need one or more weeks, I will do this improvement work base on August Release.

Quoted 6 lines

Cheers,
-Matt Helsley

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list