mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
Expand the cgroup test-suite to include tests for CLONE_INTO_CGROUP. This adds the following tests: - CLONE_INTO_CGROUP manages to clone a process directly into a correctly delegated cgroup - CLONE_INTO_CGROUP fails to clone a process into a cgroup that has been removed after we've opened an fd to it - CLONE_INTO_CGROUP fails to clone a process into an invalid domain cgroup - CLONE_INTO_CGROUP adheres to the no internal process constraint - CLONE_INTO_CGROUP works with the freezer feature Cc: Tejun Heo <[email protected]> Cc: Shuah Khan <[email protected]> Cc: [email protected] Cc: [email protected] Acked-by: Roman Gushchin <[email protected]> Signed-off-by: Christian Brauner <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
17 lines
446 B
Makefile
17 lines
446 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS += -Wall -pthread
|
|
|
|
all:
|
|
|
|
TEST_FILES := with_stress.sh
|
|
TEST_PROGS := test_stress.sh
|
|
TEST_GEN_PROGS = test_memcontrol
|
|
TEST_GEN_PROGS += test_core
|
|
TEST_GEN_PROGS += test_freezer
|
|
|
|
include ../lib.mk
|
|
|
|
$(OUTPUT)/test_memcontrol: cgroup_util.c ../clone3/clone3_selftests.h
|
|
$(OUTPUT)/test_core: cgroup_util.c ../clone3/clone3_selftests.h
|
|
$(OUTPUT)/test_freezer: cgroup_util.c ../clone3/clone3_selftests.h
|