Skip to content

Commit 7055968

Browse files
Werkovhtejun
authored andcommitted
selftests: cgroup: Lexicographic order in Makefile
This will reduce number of conflicts when modifying the lists. Signed-off-by: Michal Koutný <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 3f26a88 commit 7055968

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
test_memcontrol
32
test_core
4-
test_freezer
5-
test_kmem
6-
test_kill
73
test_cpu
84
test_cpuset
9-
test_zswap
5+
test_freezer
106
test_hugetlb_memcg
7+
test_kill
8+
test_kmem
9+
test_memcontrol
10+
test_zswap
1111
wait_inotify

tools/testing/selftests/cgroup/Makefile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,27 @@ all: ${HELPER_PROGS}
66
TEST_FILES := with_stress.sh
77
TEST_PROGS := test_stress.sh test_cpuset_prs.sh test_cpuset_v1_hp.sh
88
TEST_GEN_FILES := wait_inotify
9-
TEST_GEN_PROGS = test_memcontrol
10-
TEST_GEN_PROGS += test_kmem
11-
TEST_GEN_PROGS += test_core
12-
TEST_GEN_PROGS += test_freezer
13-
TEST_GEN_PROGS += test_kill
9+
# Keep the lists lexicographically sorted
10+
TEST_GEN_PROGS = test_core
1411
TEST_GEN_PROGS += test_cpu
1512
TEST_GEN_PROGS += test_cpuset
16-
TEST_GEN_PROGS += test_zswap
13+
TEST_GEN_PROGS += test_freezer
1714
TEST_GEN_PROGS += test_hugetlb_memcg
15+
TEST_GEN_PROGS += test_kill
16+
TEST_GEN_PROGS += test_kmem
17+
TEST_GEN_PROGS += test_memcontrol
18+
TEST_GEN_PROGS += test_zswap
1819

1920
LOCAL_HDRS += $(selfdir)/clone3/clone3_selftests.h $(selfdir)/pidfd/pidfd.h
2021

2122
include ../lib.mk
2223

23-
$(OUTPUT)/test_memcontrol: cgroup_util.c
24-
$(OUTPUT)/test_kmem: cgroup_util.c
2524
$(OUTPUT)/test_core: cgroup_util.c
26-
$(OUTPUT)/test_freezer: cgroup_util.c
27-
$(OUTPUT)/test_kill: cgroup_util.c
2825
$(OUTPUT)/test_cpu: cgroup_util.c
2926
$(OUTPUT)/test_cpuset: cgroup_util.c
30-
$(OUTPUT)/test_zswap: cgroup_util.c
27+
$(OUTPUT)/test_freezer: cgroup_util.c
3128
$(OUTPUT)/test_hugetlb_memcg: cgroup_util.c
29+
$(OUTPUT)/test_kill: cgroup_util.c
30+
$(OUTPUT)/test_kmem: cgroup_util.c
31+
$(OUTPUT)/test_memcontrol: cgroup_util.c
32+
$(OUTPUT)/test_zswap: cgroup_util.c

0 commit comments

Comments
 (0)