Re: [LTP] [PATCH] Add new testcases for cgroup

Subrata Modak
2009-08-26T05:50:03Z

On Wed, 2009-08-26 at 08:04 +0800, Shi Weihua wrote:
> 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
>
>
> Signed-off-by: Shi Weihua <shiwh@cn.fujitsu.com>

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

Regards--
Subrata

> ---
> 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(+)