Skip to contentSkip to conversation

selftsets: gitignore and clean target file additions

PATCH Superseded Javier Carrasco 3 participants 8 messages Sep 25, 2024 – Sep 26, 2024

Subsystems (7)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover selftsets: gitignore and clean target file additions

Trivial patches to update the gitignore files unders selftests, and a little addition to EXTRA_CLEAN under net/rds to account for the automatically generated include.sh.

---
Changes in v2:
- [PATCH 4/4] add excepction for load_address.c (must be tracked).
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Javier Carrasco (4):
selftests: add unshare_test and msg_oob to gitignore
selftests: rds: add include.sh to EXTRA_CLEAN
selftests: rds: add gitignore file for include.sh
selftests: exec: update gitignore for load_address

 tools/testing/selftests/core/.gitignore    | 1 +
 tools/testing/selftests/exec/.gitignore    | 3 ++-
 tools/testing/selftests/net/.gitignore     | 1 +
 tools/testing/selftests/net/rds/.gitignore | 1 +
 tools/testing/selftests/net/rds/Makefile   | 2 +-
 5 files changed, 6 insertions(+), 2 deletions(-)

---
base-commit: 4d0326b60bb753627437fff0f76bf1525bcda422
change-id: 20240924-selftests-gitignore-e41133e6c5bd

Best regards,

Signature · 1 line
Javier Carrasco <[email protected]>
#1 lore raw

PATCH v2 1/4 selftests: add unshare_test and msg_oob to gitignore

These executables are missing from their corresponding gitignore files. Add them to the lists.

---
 tools/testing/selftests/core/.gitignore | 1 +
 tools/testing/selftests/net/.gitignore  | 1 +
 2 files changed, 2 insertions(+)
tools/testing/selftests/core/.gitignore +1 -0
index 6e6712ce5817..7999361992aa 100644
@@ -1 +1,2 @@
 close_range_test
+unshare_test
tools/testing/selftests/net/.gitignore +1 -0
index 1c04c780db66..9dcdff533414 100644
@@ -17,6 +17,7 @@ ipv6_flowlabel
 ipv6_flowlabel_mgr
 log.txt
 msg_zerocopy
+msg_oob
 ncdevmem
 nettest
 psock_fanout
Signature · 1 line
2.43.0
maintainer
#2 lore raw

Re: [PATCH v2 1/4] selftests: add unshare_test and msg_oob to gitignore

Quoted 9 lines · Javier Carrasco

These executables are missing from their corresponding gitignore files. Add them to the lists.

---
  tools/testing/selftests/core/.gitignore | 1 +
  tools/testing/selftests/net/.gitignore  | 1 +
  2 files changed, 2 insertions(+)

Can you split these into two patches. It will be easier for the net patch to go through the net tree.

I take the core changes through my tree. net changes go through net tree.

Also helps avoid any future merge conflicts if new tests get added to net

Quoted 13 lines
tools/testing/selftests/core/.gitignore +1 -0
index 6e6712ce5817..7999361992aa 100644
@@ -1 +1,2 @@
  close_range_test
+unshare_test
tools/testing/selftests/net/.gitignore +0 -0
index 1c04c780db66..9dcdff533414 100644

tools/testing/selftests/net/.gitignore ipv6_flowlabel · line 23

Quoted 7 lines
tools/testing/selftests/net/.gitignore +1 -0
@@ -17,6 +17,7 @@ ipv6_flowlabel
  ipv6_flowlabel_mgr
  log.txt
  msg_zerocopy
+msg_oob
  ncdevmem
  nettest
  psock_fanout

thanks,
-- Shuah

maintainer
#3 lore raw

Re: [PATCH v2 1/4] selftests: add unshare_test and msg_oob to gitignore

Quoted 11 lines · Shuah Khan
Quoted 9 lines · Javier Carrasco

These executables are missing from their corresponding gitignore files. Add them to the lists.

---
   tools/testing/selftests/core/.gitignore | 1 +
   tools/testing/selftests/net/.gitignore  | 1 +
   2 files changed, 2 insertions(+)
Quoted 5 lines

Can you split these into two patches. It will be easier for the net patch to go through the net tree.

I take the core changes through my tree. net changes go through net tree.

@Javier, while at the above, please split the changes in two separate series: one for core and one for net. It will additionally simplify the patch handling, thanks!

Paolo

#4 lore raw

Re: [PATCH v2 1/4] selftests: add unshare_test and msg_oob to gitignore

Quoted 15 lines · Paolo Abeni
Quoted 14 lines · Shuah Khan
Quoted 9 lines · Javier Carrasco

These executables are missing from their corresponding gitignore files. Add them to the lists.

---
   tools/testing/selftests/core/.gitignore | 1 +
   tools/testing/selftests/net/.gitignore  | 1 +

   2 files changed, 2 insertions(+)

Can you split these into two patches. It will be easier for the net patch to go through the net tree.

Quoted 9 lines
Quoted 2 lines

I take the core changes through my tree. net changes go through net tree.

@Javier, while at the above, please split the changes in two separate
series: one for core and one for net. It will additionally simplify the patch handling, thanks!

Paolo

Hi Paolo,

as I have already sent a v3 where I split this patch, I will send a new series with the patches under selftests/net from that v3:

selftests: net: add msg_oob to gitignore
selftests: net: rds: add include.sh to EXTRA_CLEAN
selftests: net: rds: add gitignore file for include.sh

Best regards,
Javier Carrasco

#5 lore raw

PATCH v2 2/4 selftests: rds: add include.sh to EXTRA_CLEAN

In reply to Javier Carrasco

The include.sh file is generated when building the net/rds selftests, but there is no rule to delete it with the clean target. Add the file to EXTRA_CLEAN in order to remove it when required.

---
 tools/testing/selftests/net/rds/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/rds/Makefile +1 -1
index da9714bc7aad..0b697669ea51 100644
@@ -7,6 +7,6 @@ TEST_PROGS := run.sh \
 	include.sh \
 	test.py
 
-EXTRA_CLEAN := /tmp/rds_logs
+EXTRA_CLEAN := /tmp/rds_logs include.sh
 
 include ../../lib.mk
Signature · 1 line
2.43.0
#6 lore raw

PATCH v2 3/4 selftests: rds: add gitignore file for include.sh

In reply to Javier Carrasco

The generated include.sh should be ignored by git. Create a new gitignore and add the file to the list.

---
 tools/testing/selftests/net/rds/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/net/rds/.gitignore new file +1 -0
new file mode 100644
index 000000000000..1c6f04e2aa11
@@ -0,0 +1 @@
+include.sh
Signature · 1 line
2.43.0
#7 lore raw

PATCH v2 4/4 selftests: exec: update gitignore for load_address

In reply to Javier Carrasco

The name of the "load_address" objects has been modified, but the corresponding entry in the gitignore file must be updated.

Update the load_address entry in the gitignore file to account for the new names, adding an exception to keep on tracking load_address.c.

---
 tools/testing/selftests/exec/.gitignore | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/testing/selftests/exec/.gitignore +2 -1
index 90c238ba6a4b..a0dc5d4bf733 100644
@@ -9,7 +9,8 @@ execveat.ephemeral
 execveat.denatured
 non-regular
 null-argv
-/load_address_*
+/load_address.*
+!load_address.c
 /recursion-depth
 xxxxxxxx*
 pipe
Signature · 1 line
2.43.0