]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: only compile test programs when running test
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Jun 2012 16:07:44 +0000 (12:07 -0400)
committerMark Wielaard <mjw@redhat.com>
Tue, 17 Jul 2012 13:20:13 +0000 (15:20 +0200)
The test binaries are only needed by make check, so change the PROGRAMS
category from noinst_ to check_ 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@gentoo.org>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/Makefile.am

index 9b649173e99aebdce323af30dae770b6c6905379..9d17c7e66958277d68d407411d4b09e551a4709d 100644 (file)
@@ -1,3 +1,7 @@
+2012-06-26  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.am (check_PROGRAMS): Rename from noinst_PROGRAMS.
+
 2012-06-26  Mark Wielaard  <mjw@redhat.com>
 
        * run-macro-test.sh: New test.
index 39e58ae8679bfb08fa9d60b9e264dcd6eb6bb2f6..ae9839f100a159e444ae98434332939cc74abb2c 100644 (file)
@@ -40,7 +40,7 @@ else
 tests_rpath = no
 endif
 
-noinst_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
+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 \
@@ -83,12 +83,12 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \
        run-macro-test.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