Skip to contentSkip to conversation

controllers/pid: Add new testcases

PATCH Superseded Cedric Hnyda 1 participant 1 message Nov 12, 2015

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 controllers/pid: Add new testcases

Created new testcase to test the pids controller which is used to stop any new tasks from being fork()'d after a certain limit is reached.

---
 runtest/controllers                           |   2 +
 testcases/kernel/controllers/pids/.gitignore  |   1 +
 testcases/kernel/controllers/pids/Makefile    |  30 +++++++
 testcases/kernel/controllers/pids/pids.sh     | 109 ++++++++++++++++++++++++++
 testcases/kernel/controllers/pids/pids_task.c |  60 ++++++++++++++
 5 files changed, 202 insertions(+)
 create mode 100644 testcases/kernel/controllers/pids/.gitignore
 create mode 100644 testcases/kernel/controllers/pids/Makefile
 create mode 100644 testcases/kernel/controllers/pids/pids.sh
 create mode 100644 testcases/kernel/controllers/pids/pids_task.c
runtest/controllers +2 -0
index c62bcce..cad9d7b 100644
@@ -277,3 +277,5 @@ cpuset_memory_spread	cpuset_memory_spread_testset.sh
 cpuset_regression_test cpuset_regression_test.sh
 
 cgroup_xattr	cgroup_xattr
+
+pids pids.sh
testcases/kernel/controllers/pids/.gitignore new file +1 -0
new file mode 100644
index 0000000..d7d4e14
@@ -0,0 +1 @@
+/pids_task
testcases/kernel/controllers/pids/Makefile new file +30 -0
new file mode 100644
index 0000000..c881153
@@ -0,0 +1,30 @@
+#
+#    kernel/controllers/cpuacct test suite Makefile.
+#
+#    Copyright (C) 2015, SUSE
+#
+#    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.
+#
+# Author: Cedric Hnyda <[email protected]>
+#
+
+top_srcdir		?= ../../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+include $(abs_srcdir)/../Makefile.inc
+
+INSTALL_TARGETS		:= *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/controllers/pids/pids.sh new file +109 -0

109 lines not on this page · raw message

testcases/kernel/controllers/pids/pids_task.c new file +60 -0

60 lines not on this page · raw message

Signature · 1 line
2.1.4