From: Jim Meyering Date: Mon, 28 Apr 2008 20:59:24 +0000 (+0200) Subject: tests: don't hard-code coreutils list of tests/ SUBDIRS in bootstrap X-Git-Tag: v6.12~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28f1b61e594eeb91658e8db392d8911a4485dc7a;p=thirdparty%2Fcoreutils.git tests: don't hard-code coreutils list of tests/ SUBDIRS in bootstrap * bootstrap: Extract the list from tests/Makefile.am, and die when it is empty -- it will be, eventually. --- diff --git a/bootstrap b/bootstrap index c4b9b629bb..9e354446a3 100755 --- a/bootstrap +++ b/bootstrap @@ -535,7 +535,9 @@ fi mam_template=tests/Makefile.am.in if test -f $mam_template; then PERL=perl - for tool in cut head join pr sort tac tail test tr uniq; do + tool_subdirs=`$PERL -ne '/^SUBDIRS = (.*)/ and print $1' tests/Makefile.am` + test "$tool_subdirs" = '' && { echo "$0: no more SUBDIRS: FIXME"1>&2; exit 1;} + for tool in $tool_subdirs; do m=tests/$tool/Makefile.am t=${m}t rm -f $m $t