selftests/acct: add cleanup for leftover process_log binary
PATCH 1/2 selftests/acct: add cleanup for leftover process_log binary
Some kselftests generate temporary binaries that are not tracked by TEST_GEN_PROGS. Add EXTRA_CLEAN entry to remove process_log during make kselftest-clean.
--- tools/testing/selftests/acct/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/testing/selftests/acct/Makefile +2 -1
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := acct_syscall CFLAGS += -Wall +EXTRA_CLEAN := process_log -include ../lib.mk +include ../lib.mk
Signature · 1 line
2.51.0
PATCH 2/2 selftests/cachestat: add cleanup for leftover tmpshmcstat binary
Some kselftests generate temporary binaries that are not tracked by TEST_GEN_PROGS. Add EXTRA_CLEAN entry to remove tmpshmcstat during make kselftest-clean.
--- tools/testing/selftests/cachestat/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/cachestat/Makefile +1 -0
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := test_cachestat +EXTRA_CLEAN := tmpshmcstat CFLAGS += $(KHDR_INCLUDES) CFLAGS += -Wall
Signature · 1 line
2.51.0
Shuah Khan
maintainerQuoted 14 lines · Madhur Kumar
Some kselftests generate temporary binaries that are not tracked by
TEST_GEN_PROGS. AddEXTRA_CLEANentry to removeprocess_logduringmake kselftest-clean.Signed-off-by Madhur Kumar <[email protected]>--- tools/testing/selftests/acct/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tools/testing/selftests/acct/Makefile +0
-0
tools/testing/selftests/acct/Makefile line 6
Quoted 9 lines
tools/testing/selftests/acct/Makefile +2
-1@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := acct_syscall CFLAGS += -Wall +EXTRA_CLEAN := process_log -include ../lib.mk +include ../lib.mk
Why is this deleted and added back
Please fix the patch and send v2.
thanks,
-- Shuah
From: Madhur Kumar <[email protected]>
To: Shuah Khan <[email protected]>
Cc: [email protected], [email protected], [email protected]
Subject: Re: [PATCH 1/2] selftests/acct: add cleanup for leftover process_log binary
In-Reply-To: <[email protected]>
Hi Shuah,
Addition and deletion of the line happens due to
the newline at the end of file.
Code unchanged otherwise.
Regards,
Madhur Kumar
PATCH v2 1/2 selftests/acct: add cleanup for leftover process_log binary
In reply to Shuah KhanSome kselftests generate temporary binaries that are not tracked by TEST_GEN_PROGS. Add EXTRA_CLEAN entry to remove process_log during make kselftest-clean.
v2:
- Fix newline issue at end of Makefile (caused add/delete in git diff)
- Code otherwise unchanged
--- tools/testing/selftests/acct/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/acct/Makefile +1 -0
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := acct_syscall CFLAGS += -Wall +EXTRA_CLEAN := process_log include ../lib.mk
Signature · 1 line
2.51.0
Shuah Khan
maintainerQuoted 4 lines · Madhur Kumar
Some kselftests generate temporary binaries that are not tracked by
TEST_GEN_PROGS. AddEXTRA_CLEANentry to removeprocess_logduringmake kselftest-clean.
This information below doesn't belong in the change log
Quoted 6 lines
v2:
- Fix newline issue at end ofMakefile(caused add/delete in git diff)
- Code otherwise unchangedSigned-off-by Madhur Kumar <[email protected]>---
Add patch version information here.
Quoted 8 lines
tools/testing/selftests/acct/Makefile | 1 + 1 file changed, 1 insertion(+)tools/testing/selftests/acct/Makefile +0
-0
tools/testing/selftests/acct/Makefile line 6
Quoted 6 lines
tools/testing/selftests/acct/Makefile +1
-0@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := acct_syscall CFLAGS += -Wall +EXTRA_CLEAN := process_log include ../lib.mk
This line below is still odd.
Quoted 1 line
\ No newline at end of file
Start without any changes, make the change, commit, and send v3. Refer to a few patches on the mailing list for examples on where the patch version information should be added.
thanks,
-- Shuah
Shuah Khan
maintainerRe: [PATCH 2/2] selftests/cachestat: add cleanup for leftover tmpshmcstat binary
In reply to Madhur KumarQuoted 3 lines · Madhur Kumar
Some kselftests generate temporary binaries that are not tracked by
TEST_GEN_PROGS. AddEXTRA_CLEANentry to remove tmpshmcstat duringmake kselftest-clean.
This isn't really accurate. tmpshmcstat is generated when when test runs. Include this information in the change log and send new version of this patch.
Quoted 11 lines
Signed-off-by Madhur Kumar <[email protected]>--- tools/testing/selftests/cachestat/Makefile | 1 + 1 file changed, 1 insertion(+)tools/testing/selftests/cachestat/Makefile +0
-0
tools/testing/selftests/cachestat/Makefile line 6
Quoted 6 lines
tools/testing/selftests/cachestat/Makefile +1
-0@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := test_cachestat +EXTRA_CLEAN := tmpshmcstat CFLAGS += $(KHDR_INCLUDES) CFLAGS += -Wall
thanks,
-- Shuah
PATCH v3 1/2 selftests/acct: add cleanup for leftover process_log binary
In reply to Madhur KumarThe acct_syscall test generates a process_log binary after it runs, but this file is not removed by 'make kselftest-clean'. Add an EXTRA_CLEAN entry to ensure the binary gets cleaned up properly.
---
v3:
- refined changed log wording
- Removed patch version info from commit log (kept only problem/fix).
v2:
- Fix newline issue at end of Makefile (caused add/delete in git diff)
- Code otherwise unchanged
--- tools/testing/selftests/acct/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/acct/Makefile +1 -0
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := acct_syscall CFLAGS += -Wall +EXTRA_CLEAN := process_log include ../lib.mk
Signature · 1 line
2.51.0
PATCH v2 2/2 selftests/cachestat: add cleanup for leftover tmpshmcstat file
In reply to Madhur KumarThe cachestat test generates a temporary file named "tmpshmcstat" when it runs, but this file is not removed by 'make kselftest-clean'. Add an EXTRA_CLEAN entry to ensure the file gets cleaned up properly.
---
v2:
- Corrected subject line to describe "tmpshmcstat" as a file, not a binary.
- Refined commit log for clarity
--- tools/testing/selftests/cachestat/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/cachestat/Makefile +1 -0
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 TEST_GEN_PROGS := test_cachestat +EXTRA_CLEAN := tmpshmcstat CFLAGS += $(KHDR_INCLUDES) CFLAGS += -Wall
Signature · 1 line
2.51.0