Skip to contentSkip to conversation

Clean kernel/containers folder

PATCH In review Andrea Cervesato 2 participants 2 messages Sep 14, 2023 – Sep 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Clean kernel/containers folder

From: Andrea Cervesato <[email protected]>

Cleaned up the containers Makefile from unused dependences, removed legacy files and splitted .gitignore into subfolders.

---
 testcases/kernel/containers/.gitignore        | 14 ------
 testcases/kernel/containers/README            | 48 -------------------
 testcases/kernel/containers/TEST_PLAN.txt     | 27 -----------
 .../kernel/containers/mountns/.gitignore      |  4 ++
 testcases/kernel/containers/mqns/Makefile     |  2 +-
 testcases/kernel/containers/pidns/Makefile    |  2 +-
 testcases/kernel/containers/userns/.gitignore |  9 ++++
 testcases/kernel/containers/userns/Makefile   | 20 ++------
 testcases/kernel/containers/utsname/Makefile  |  3 --
 9 files changed, 18 insertions(+), 111 deletions(-)
 delete mode 100644 testcases/kernel/containers/.gitignore
 delete mode 100644 testcases/kernel/containers/README
 delete mode 100644 testcases/kernel/containers/TEST_PLAN.txt
 create mode 100644 testcases/kernel/containers/mountns/.gitignore
 create mode 100644 testcases/kernel/containers/userns/.gitignore
testcases/kernel/containers/.gitignore deleted +0 -14
deleted file mode 100644
index 5c2b90312..000000000
@@ -1,14 +0,0 @@
-/check_for_unshare
-mountns/mountns01
-mountns/mountns02
-mountns/mountns03
-mountns/mountns04
-userns/userns01
-userns/userns02
-userns/userns03
-userns/userns04
-userns/userns05
-userns/userns06_capcheck
-userns/userns06
-userns/userns07
-userns/userns08
testcases/kernel/containers/README deleted +0 -48

48 lines not on this page · raw message

testcases/kernel/containers/TEST_PLAN.txt deleted +0 -27
deleted file mode 100644
index 809abaecb..000000000
@@ -1,27 +0,0 @@
-################################################################################
-## Copyright (c) International Business Machines  Corp., 2007
-##
-## 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
-################################################################################
-
-Following are tentative Testcases to be included into LTP-Containers in future:
-
-NAME						TENTATIVE-TIME
-=================================================================================
-PID NAMESPACES					(NEAR FUTURE)
-NETWORK NAMESPACES				(NEAR FUTURE)
-POSIX IPC NAMESPACES				(NEAR FUTURE)
-TTY+CONSOLE+DEVPTS NAMESPACES			(NEAR FUTURE)
-PROC+SYSFS ISOLATION				(NEAR FUTURE)
-PER-CONTAINER CAPABILITY/SECURITY TESTS		(NEAR FUTURE)
-=================================================================================
testcases/kernel/containers/mountns/.gitignore new file +4 -0
new file mode 100644
index 000000000..0555e9b3b
@@ -0,0 +1,4 @@
+mountns01
+mountns02
+mountns03
+mountns04
testcases/kernel/containers/mqns/Makefile +1 -1
index f66aa0ffb..01e90ec33 100644
@@ -7,6 +7,6 @@ top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/testcases.mk
 
-LDLIBS			:= -lpthread -lrt $(LDLIBS)
+LDLIBS			:= -lrt $(LDLIBS)
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/containers/pidns/Makefile +1 -1
index b99df9f74..180bc7c90 100644
@@ -5,6 +5,6 @@ top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/testcases.mk
 
-LDLIBS			:= -lpthread -lrt $(LDLIBS)
+LDLIBS			:= -lrt $(LDLIBS)
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/containers/userns/.gitignore new file +9 -0
new file mode 100644
index 000000000..dbd4aee27
@@ -0,0 +1,9 @@
+userns01
+userns02
+userns03
+userns04
+userns05
+userns06_capcheck
+userns06
+userns07
+userns08
testcases/kernel/containers/userns/Makefile +3 -17
index cc1d14604..1531d1de6 100644
@@ -1,20 +1,6 @@
-###############################################################################
-#                                                                            ##
-# Copyright (c) Huawei Technologies Co., Ltd., 2015                          ##
-#                                                                            ##
-# 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.                                                   ##
-###############################################################################
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (c) Huawei Technologies Co., Ltd., 2015
+# Copyright (C) 2023 SUSE LLC Andrea Cervesato <[email protected]>
 
 top_srcdir		?= ../../../..
 
testcases/kernel/containers/utsname/Makefile +0 -3
index 603a3cd6e..b6beb8b8f 100644
@@ -4,7 +4,4 @@
 top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/testcases.mk
-
-LDLIBS			:= $(LDLIBS)
-
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
Signature · 5 lines
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp