Package: automake
Version: 1:1.14.1-4
Severity: normal
Tags: patch upstream

Dear Maintainer,

Something like:
       ./autogen.sh
       ./configure
       make check-TESTS
    will fail, unless 'make check' is run before 'make check-TESTS' for
    Makefile.am snippet like:

    check_PROGRAMS = foo
    check_SCRIPTS = run_foo_wrapper.sh
    TESTS = $(check_SCRIPTS)



-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental'), 
(1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages automake depends on:
ii  autoconf       2.69-8
ii  autotools-dev  20140911.1

automake recommends no packages.

automake suggests no packages.

-- no debconf information
>From 8e5260dc28fc54a2c7c19e5aa2f0f6aefa2c6fa9 Mon Sep 17 00:00:00 2001
From: Nicholas Brown <bro...@brocade.com>
Date: Tue, 19 Apr 2016 17:43:24 +0100
Subject: [PATCH] check-TESTS has dependency on check_PROGRAMS etc

Something like:
   ./autogen.sh
   ./configure
   make check-TESTS
will fail, unless 'make check' is run before 'make check-TESTS' for
Makefile.am snippet like:

check_PROGRAMS = foo
check_SCRIPTS = run_foo_wrapper.sh
TESTS = $(check_SCRIPTS)
---
 lib/am/check.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/am/check.am b/lib/am/check.am
index 7bcffd53faa8..15cfc7c64598 100644
--- a/lib/am/check.am
+++ b/lib/am/check.am
@@ -401,7 +401,8 @@ RECHECK_LOGS = $(TEST_LOGS)
 ## Running all tests, or rechecking failures. ##
 ## ------------------------------------------ ##
 
-check-TESTS:
+## Running tests depend on $(check_SCRIPTS), $(check_PROGRAMS), etc.
+check-TESTS: %CHECK_DEPS%
 	@list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
 	@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
 ## We always have to remove $(TEST_SUITE_LOG), to ensure its rule is run
-- 
2.1.4

Reply via email to