tests, config: Add more .gitignore files

Message ID 20240328234308.1032110-1-mark@klomp.org
State Committed
Headers
Series tests, config: Add more .gitignore files |

Commit Message

Mark Wielaard March 28, 2024, 11:43 p.m. UTC
  Some new tests and one configure file weren't in .gitignore. Also
we made a copy of libelf.h in tests/ which should be an symlink.

	* config/.gitignore: Add profile.fish.
	* tests/.gitignore: Add funcretval_test_struct, libelf.h
	and system-elf-gelf-test.
	* tests/Makefile.am (libelf.h): Make symlink instead of copy.

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 config/.gitignore | 1 +
 tests/.gitignore  | 3 +++
 tests/Makefile.am | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)
  

Comments

Mark Wielaard April 1, 2024, 9:19 p.m. UTC | #1
On Fri, Mar 29, 2024 at 12:43:08AM +0100, Mark Wielaard wrote:
> Some new tests and one configure file weren't in .gitignore. Also
> we made a copy of libelf.h in tests/ which should be an symlink.
> 
> 	* config/.gitignore: Add profile.fish.
> 	* tests/.gitignore: Add funcretval_test_struct, libelf.h
> 	and system-elf-gelf-test.
> 	* tests/Makefile.am (libelf.h): Make symlink instead of copy.

Pushed to main.
  

Patch

diff --git a/config/.gitignore b/config/.gitignore
index 8cd8ccdbf3c1..b7897159babf 100644
--- a/config/.gitignore
+++ b/config/.gitignore
@@ -11,5 +11,6 @@ 
 /missing
 /profile.csh
 /profile.sh
+/profile.fish
 /test-driver
 /ylwrap
diff --git a/tests/.gitignore b/tests/.gitignore
index 0289959d73d5..772c7881ae3f 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -71,6 +71,7 @@ 
 /find-prologues
 /funcretval
 /funcretval_test++11
+/funcretval_test_struct
 /funcscopes
 /get-aranges
 /get-files
@@ -81,6 +82,7 @@ 
 /getphdrnum
 /getsrc_die
 /hash
+/libelf.h
 /leb128
 /line2addr
 /low_high_pc
@@ -104,6 +106,7 @@ 
 /showptable
 /strptr
 /system-elf-libelf-test
+/system-elf-gelf-test
 /test-elf_cntl_gelf_getshdr
 /test-flag-nobits
 /test-nlist
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 344d6706e16e..40e0eaa5a368 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -841,7 +841,7 @@  declfiles_LDADD = $(libdw)
 BUILT_SOURCES = libelf.h
 CLEANFILES += libelf.h
 libelf.h: $(top_srcdir)/libelf/libelf.h
-	cp $< $@
+	ln -s $< $@
 if !INSTALL_ELFH
 system_elf_libelf_test_CPPFLAGS =
 system_elf_gelf_test_CPPFLAGS = -I.