Skip to contentSkip to conversation

mem test items cleanup

PATCH In review [email protected] 2 participants 2 messages Mar 25, 2011 – Mar 30, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mem test items cleanup

I found several problems of the tests in mem/ dir: mlock test should be in syscalls/ dir; hugemmap05 test should be executed with other hugetlb tests together.

So I made some changes to do the cleanup.

---
 runtest/hugetlb                           |    4 +
 runtest/mm                                |    9 +--
 runtest/syscalls                          |    5 +-
 testcases/kernel/mem/mlock/Makefile       |   23 ------
 testcases/kernel/mem/mlock/mlock01.c      |  105 ----------------------------
 testcases/kernel/syscalls/mlock/mlock04.c |  108 +++++++++++++++++++++++++++++
 6 files changed, 116 insertions(+), 138 deletions(-)
 delete mode 100644 testcases/kernel/mem/mlock/Makefile
 delete mode 100644 testcases/kernel/mem/mlock/mlock01.c
 create mode 100644 testcases/kernel/syscalls/mlock/mlock04.c
runtest/hugetlb +4 -0
index 1347f32..af45868 100644
@@ -2,6 +2,10 @@ hugemmap01 hugemmap01 -H/tmp
 hugemmap02 hugemmap02 -H/tmp -c10
 hugemmap03 hugemmap03 -H/tmp -I2 -c10
 hugemmap04 hugemmap04 -H/tmp
+hugemmap05 hugemmap05
+hugemmap05_1 hugemmap05 -m
+hugemmap05_2 hugemmap05 -s
+hugemmap05_3 hugemmap05 -s -m
 
 hugeshmat01 hugeshmat01 -i 5
 hugeshmat02 hugeshmat02 -i 5
runtest/mm +1 -8
index 0633e14..f2d50d6 100644
@@ -59,6 +59,7 @@ mmap10_1 mmap10 -a
 mmap10_2 mmap10 -s
 mmap10_3 mmap10 -a -s
 mmap10_4 mmap10 -a -s -i 60
+mmap10_5 mmap10 -a -s -c 200
 
 ksm01 ksm01
 ksm01_1 ksm01 -u 128
@@ -69,16 +70,8 @@ ksm03_1 ksm03 -u 128
 ksm04 ksm04
 ksm04_1 ksm04 -u 128
 
-hugemmap05 hugemmap05
-hugemmap05_1 hugemmap05 -m
-hugemmap05_2 hugemmap05 -s
-hugemmap05_3 hugemmap05 -s -m
-
 cpuset01 cpuset01 -I 3600
 
-mlock01 mlock01
-mlock03 mlock03 -i 20
-
 mbind01 mbind01
 
 oom01 oom01
runtest/syscalls +3 -2
index 3bd9c50..4294d07 100644
@@ -541,6 +541,8 @@ mknodat01 cd $LTPROOT/testcases/bin && chown root mknodat01 && chmod 04755 mknod
 
 mlock01 mlock01
 mlock02 mlock02
+mlock03 mlock03 -i 20
+mlock04 mlock04
 
 qmm01 mmap001 -m 1
 mmap01 mmap01
@@ -552,6 +554,7 @@ mmap06 mmap06
 mmap07 mmap07
 mmap08 mmap08
 mmap09 mmap09
+mmap11 mmap11 -i 30000
 
 modify_ldt01 modify_ldt01
 modify_ldt02 modify_ldt02
@@ -1290,5 +1293,3 @@ writev03 writev03
 writev04 writev04
 writev05 writev05
 writev06 writev06
-
-mmap11 mmap11 -i 30000
testcases/kernel/mem/mlock/Makefile deleted +0 -23
deleted file mode 100644
index dbfbc1b..0000000
@@ -1,23 +0,0 @@
-#
-#  Copyright (C) 2010  Red Hat, Inc.
-#
-#  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., 51 Franklin Street, Fifth Floor, Boston, MA
-#  02110-1301, USA.
-#
-
-top_srcdir              ?= ../../../..
-
-include $(top_srcdir)/include/mk/testcases.mk
-include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/mem/mlock/mlock01.c deleted +0 -105

105 lines not on this page · raw message

testcases/kernel/syscalls/mlock/mlock04.c new file +108 -0

108 lines not on this page · raw message

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw

Hi!
Commited, thanks!

Signature · 12 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list