From 89dc0194511bdf7709ad5fc63acd079d6fa62b75 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 10 Jul 2007 22:37:48 +0200 Subject: Skip "arch" test if it's not built. * tests/misc/Makefile.am (built_programs): Define. (TESTS_ENVIRONMENT): Add $(built_programs), for... * tests/misc/arch: ...this: skip the test if arch is not built. * src/Makefile.am (built_programs.list): New rule. * tests/Makefile.am (built_programs): Rename from all_programs. (TESTS_ENVIRONMENT): Use built_programs, not all_programs. * tests/help-version: Likewise. * NEWS: Mention that using --enable-no-install-program=X may cause "make check" to fail. Signed-off-by: Jim Meyering --- tests/help-version | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/help-version') diff --git a/tests/help-version b/tests/help-version index dd037eed6..d882d85f8 100755 --- a/tests/help-version +++ b/tests/help-version @@ -39,7 +39,7 @@ expected_failure_status_dir=2 expected_failure_status_ls=2 expected_failure_status_vdir=2 -case "$all_programs" in +case "$built_programs" in *groups*) if test -w /dev/full && test -c /dev/full \ && echo > /dev/full 2>/dev/null; then @@ -59,7 +59,7 @@ scripts to fail, so it is being removed from the list of programs checked by this test. ************************************************ EOF - all_programs=`echo $all_programs | tr ' ' '\n' | grep -v '^groups$'` + built_programs=`echo $built_programs | tr ' ' '\n' | grep -v '^groups$'` fi ;; esac @@ -67,7 +67,7 @@ esac fail=0 for lang in C fr da; do - for i in $all_programs; do + for i in $built_programs; do # Skip `test'; it doesn't accept --help or --version. test $i = test && continue; @@ -196,7 +196,7 @@ stat_args=$tmp_in unlink_args=$tmp_in lbracket_args=": ]" -for i in $all_programs; do +for i in $built_programs; do # Skip these. case $i in chroot|stty|tty|false|chcon|runcon) continue;; esac -- cgit v1.2.3-70-g09d2