[PATCH] tests: only compile test programs when running test

Mike Frysinger vapier at gentoo.org
Tue Jun 26 16:07:44 UTC 2012


There's no real point in compiling all the test related binaries when
people aren't running the tests.  So change the PROGRAMS category from
noinst to test to speed up default `make && make install`.

If people want to run the tests, then the utilities will be compiled
automatically when they run `make check`, so the normal workflow should
be unchanged.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 tests/ChangeLog   |    4 ++++
 tests/Makefile.am |   26 +++++++++++++-------------
 2 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/tests/ChangeLog b/tests/ChangeLog
index 6f5e458..5790d81 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-26  Mike Frysinger  <vapier at gentoo.org>
+
+	* Makefile.am (check_PROGRAMS): Rename from noinst_PROGRAMS.
+
 2012-05-07  Mark Wielaard  <mjw at redhat.com>
 
 	* low_high_pc.c: Use proper inttypes in printf formats.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ced7831..8e41bc9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -40,17 +40,17 @@ else
 tests_rpath = no
 endif
 
-noinst_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
-		  showptable update1 update2 update3 update4 test-nlist \
-		  show-die-info get-files get-lines get-pubnames \
-		  get-aranges allfcts line2addr addrscopes funcscopes \
-		  show-abbrev hash newscn ecp dwflmodtest \
-		  find-prologues funcretval allregs rdwrmmap \
-		  dwfl-bug-addr-overflow arls dwfl-bug-fd-leak \
-		  dwfl-addr-sect dwfl-bug-report early-offscn \
-		  dwfl-bug-getmodules dwarf-getmacros addrcfi \
-		  test-flag-nobits dwarf-getstring rerequest_tag \
-		  alldts md5-sha1-test typeiter low_high_pc
+check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
+		 showptable update1 update2 update3 update4 test-nlist \
+		 show-die-info get-files get-lines get-pubnames \
+		 get-aranges allfcts line2addr addrscopes funcscopes \
+		 show-abbrev hash newscn ecp dwflmodtest \
+		 find-prologues funcretval allregs rdwrmmap \
+		 dwfl-bug-addr-overflow arls dwfl-bug-fd-leak \
+		 dwfl-addr-sect dwfl-bug-report early-offscn \
+		 dwfl-bug-getmodules dwarf-getmacros addrcfi \
+		 test-flag-nobits dwarf-getstring rerequest_tag \
+		 alldts md5-sha1-test typeiter low_high_pc
 asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
 	    asm-tst6 asm-tst7 asm-tst8 asm-tst9
 
@@ -82,12 +82,12 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \
 	run-readelf-d.sh run-unstrip-n.sh run-low_high_pc.sh
 
 if !STANDALONE
-noinst_PROGRAMS += msg_tst md5-sha1-test
+check_PROGRAMS += msg_tst md5-sha1-test
 TESTS += msg_tst md5-sha1-test
 endif
 
 if HAVE_LIBASM
-noinst_PROGRAMS += $(asm_TESTS)
+check_PROGRAMS += $(asm_TESTS)
 TESTS += $(asm_TESTS)
 endif
 
-- 
1.7.9.7



More information about the elfutils-devel mailing list