Mercurial > hg > octave-lyh > gnulib-hg
changeset 9284:afba4e078ebc
Synthesize an EXTRA_DIST augmentation also for tests modules.
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,52 @@ +2007-10-03 Bruno Haible <bruno@clisp.org> + + * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST + augmentation also for tests modules. + * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation. + * modules/atexit-tests (Makefile.am): Likewise. + * modules/binary-io-tests (Makefile.am): Likewise. + * modules/c-strcase-tests (Makefile.am): Likewise. + * modules/canonicalize-lgpl-tests (Makefile.am): Likewise. + * modules/canonicalize-tests (Makefile.am): Likewise. + * modules/closein-tests (Makefile.am): Likewise. + * modules/fprintf-posix-tests (Makefile.am): Likewise. + * modules/freadahead-tests (Makefile.am): Likewise. + * modules/fseek-tests (Makefile.am): Likewise. + * modules/fseeko-tests (Makefile.am): Likewise. + * modules/ftell-tests (Makefile.am): Likewise. + * modules/ftello-tests (Makefile.am): Likewise. + * modules/isnanl-nolibm-tests (Makefile.am): Likewise. + * modules/isnanl-tests (Makefile.am): Likewise. + * modules/lseek-tests (Makefile.am): Likewise. + * modules/mbscasecmp-tests (Makefile.am): Likewise. + * modules/mbscasestr-tests (Makefile.am): Likewise. + * modules/mbschr-tests (Makefile.am): Likewise. + * modules/mbscspn-tests (Makefile.am): Likewise. + * modules/mbsncasecmp-tests (Makefile.am): Likewise. + * modules/mbspbrk-tests (Makefile.am): Likewise. + * modules/mbspcasecmp-tests (Makefile.am): Likewise. + * modules/mbsrchr-tests (Makefile.am): Likewise. + * modules/mbsspn-tests (Makefile.am): Likewise. + * modules/mbsstr-tests (Makefile.am): Likewise. + * modules/printf-posix-tests (Makefile.am): Likewise. + * modules/snprintf-posix-tests (Makefile.am): Likewise. + * modules/sprintf-posix-tests (Makefile.am): Likewise. + * modules/tsearch-tests (Makefile.am): Likewise. + * modules/uniname/uniname-tests (Makefile.am): Likewise. + * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise. + * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise. + * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise. + * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise. + * modules/vasnprintf-posix-tests (Makefile.am): Likewise. + * modules/vfprintf-posix-tests (Makefile.am): Likewise. + * modules/vprintf-posix-tests (Makefile.am): Likewise. + * modules/vsnprintf-posix-tests (Makefile.am): Likewise. + * modules/vsprintf-posix-tests (Makefile.am): Likewise. + * modules/xstrtoimax-tests (Makefile.am): Likewise. + * modules/xstrtol-tests (Makefile.am): Likewise. + * modules/xstrtoumax-tests (Makefile.am): Likewise. + * modules/yesno-tests (Makefile.am): Likewise. + 2007-10-03 Bruno Haible <bruno@clisp.org> * modules/trunc-tests: New file.
--- a/gnulib-tool +++ b/gnulib-tool @@ -1247,6 +1247,18 @@ case "$1" in *-tests) # *-tests module live in tests/, not lib/. + # Synthesize an EXTRA_DIST augmentation. + all_files=`func_get_filelist $1` + tests_files=`for f in $all_files; do \ + case $f in \ + tests/*) echo $f ;; \ + esac; \ + done | sed -e 's,^tests/,,'` + extra_files="$tests_files" + if test -n "$extra_files"; then + echo "EXTRA_DIST +=" $extra_files + echo + fi ;; *) # Synthesize an EXTRA_DIST augmentation.
--- a/modules/argp-tests +++ b/modules/argp-tests @@ -9,4 +9,3 @@ TESTS += test-argp test-argp-2.sh check_PROGRAMS += test-argp test_argp_LDADD = $(LDADD) @LIBINTL@ -EXTRA_DIST += test-argp-2.sh
--- a/modules/atexit-tests +++ b/modules/atexit-tests @@ -11,4 +11,3 @@ TESTS += test-atexit.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-atexit -EXTRA_DIST += test-atexit.sh
--- a/modules/binary-io-tests +++ b/modules/binary-io-tests @@ -9,6 +9,5 @@ Makefile.am: TESTS += test-binary-io.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' -EXTRA_DIST += test-binary-io.sh check_PROGRAMS += test-binary-io
--- a/modules/c-strcase-tests +++ b/modules/c-strcase-tests @@ -15,4 +15,3 @@ TESTS += test-c-strcase.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp -EXTRA_DIST += test-c-strcase.sh
--- a/modules/canonicalize-lgpl-tests +++ b/modules/canonicalize-lgpl-tests @@ -10,5 +10,4 @@ TESTS += test-canonicalize-lgpl.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-canonicalize-lgpl -EXTRA_DIST += test-canonicalize-lgpl.sh test_canonicalize_lgpl_LDADD = $(LDADD)
--- a/modules/canonicalize-tests +++ b/modules/canonicalize-tests @@ -10,5 +10,4 @@ TESTS += test-canonicalize.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-canonicalize -EXTRA_DIST += test-canonicalize.sh test_canonicalize_LDADD = $(LDADD) @LIBINTL@
--- a/modules/closein-tests +++ b/modules/closein-tests @@ -11,5 +11,4 @@ TESTS += test-closein.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-closein -EXTRA_DIST += test-closein.sh test_closein_LDADD = $(LDADD) @LIBINTL@
--- a/modules/fprintf-posix-tests +++ b/modules/fprintf-posix-tests @@ -13,4 +13,3 @@ TESTS += test-fprintf-posix.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-fprintf-posix -EXTRA_DIST += test-fprintf-posix.sh test-fprintf-posix.h test-printf-posix.output
--- a/modules/freadahead-tests +++ b/modules/freadahead-tests @@ -12,4 +12,3 @@ TESTS += test-freadahead.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-freadahead -EXTRA_DIST += test-freadahead.sh
--- a/modules/fseek-tests +++ b/modules/fseek-tests @@ -10,4 +10,3 @@ TESTS += test-fseek.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-fseek -EXTRA_DIST += test-fseek.sh
--- a/modules/fseeko-tests +++ b/modules/fseeko-tests @@ -10,4 +10,3 @@ TESTS += test-fseeko.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-fseeko -EXTRA_DIST += test-fseeko.sh
--- a/modules/ftell-tests +++ b/modules/ftell-tests @@ -10,4 +10,3 @@ TESTS += test-ftell.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-ftell -EXTRA_DIST += test-ftell.sh
--- a/modules/ftello-tests +++ b/modules/ftello-tests @@ -10,4 +10,3 @@ TESTS += test-ftello.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-ftello -EXTRA_DIST += test-ftello.sh
--- a/modules/isnanl-nolibm-tests +++ b/modules/isnanl-nolibm-tests @@ -10,5 +10,4 @@ Makefile.am: TESTS += test-isnanl-nolibm check_PROGRAMS += test-isnanl-nolibm -EXTRA_DIST += test-isnanl.h
--- a/modules/isnanl-tests +++ b/modules/isnanl-tests @@ -11,5 +11,4 @@ TESTS += test-isnanl check_PROGRAMS += test-isnanl test_isnanl_LDADD = $(LDADD) @ISNANL_LIBM@ -EXTRA_DIST += test-isnanl.h
--- a/modules/lseek-tests +++ b/modules/lseek-tests @@ -10,4 +10,3 @@ TESTS += test-lseek.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-lseek -EXTRA_DIST += test-lseek.sh
--- a/modules/mbscasecmp-tests +++ b/modules/mbscasecmp-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbscasecmp.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' -EXTRA_DIST += test-mbscasecmp.sh check_PROGRAMS += test-mbscasecmp
--- a/modules/mbscasestr-tests +++ b/modules/mbscasestr-tests @@ -21,6 +21,5 @@ Makefile.am: TESTS += test-mbscasestr1 test-mbscasestr2.sh test-mbscasestr3.sh test-mbscasestr4.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' -EXTRA_DIST += test-mbscasestr2.sh test-mbscasestr3.sh test-mbscasestr4.sh check_PROGRAMS += test-mbscasestr1 test-mbscasestr2 test-mbscasestr3 test-mbscasestr4
--- a/modules/mbschr-tests +++ b/modules/mbschr-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbschr.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' -EXTRA_DIST += test-mbschr.sh check_PROGRAMS += test-mbschr
--- a/modules/mbscspn-tests +++ b/modules/mbscspn-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbscspn.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' -EXTRA_DIST += test-mbscspn.sh check_PROGRAMS += test-mbscspn
--- a/modules/mbsncasecmp-tests +++ b/modules/mbsncasecmp-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbsncasecmp.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' -EXTRA_DIST += test-mbsncasecmp.sh check_PROGRAMS += test-mbsncasecmp
--- a/modules/mbspbrk-tests +++ b/modules/mbspbrk-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbspbrk.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' -EXTRA_DIST += test-mbspbrk.sh check_PROGRAMS += test-mbspbrk
--- a/modules/mbspcasecmp-tests +++ b/modules/mbspcasecmp-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbspcasecmp.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' -EXTRA_DIST += test-mbspcasecmp.sh check_PROGRAMS += test-mbspcasecmp
--- a/modules/mbsrchr-tests +++ b/modules/mbsrchr-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbsrchr.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' -EXTRA_DIST += test-mbsrchr.sh check_PROGRAMS += test-mbsrchr
--- a/modules/mbsspn-tests +++ b/modules/mbsspn-tests @@ -12,6 +12,5 @@ Makefile.am: TESTS += test-mbsspn.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' -EXTRA_DIST += test-mbsspn.sh check_PROGRAMS += test-mbsspn
--- a/modules/mbsstr-tests +++ b/modules/mbsstr-tests @@ -17,6 +17,5 @@ Makefile.am: TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' -EXTRA_DIST += test-mbsstr2.sh test-mbsstr3.sh check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3
--- a/modules/printf-posix-tests +++ b/modules/printf-posix-tests @@ -13,4 +13,3 @@ TESTS += test-printf-posix.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-printf-posix -EXTRA_DIST += test-printf-posix.sh test-printf-posix.h test-printf-posix.output
--- a/modules/snprintf-posix-tests +++ b/modules/snprintf-posix-tests @@ -13,5 +13,4 @@ Makefile.am: TESTS += test-snprintf-posix test-snprintf check_PROGRAMS += test-snprintf-posix test-snprintf -EXTRA_DIST += test-snprintf-posix.h
--- a/modules/sprintf-posix-tests +++ b/modules/sprintf-posix-tests @@ -10,5 +10,4 @@ Makefile.am: TESTS += test-sprintf-posix check_PROGRAMS += test-sprintf-posix -EXTRA_DIST += test-sprintf-posix.h
--- a/modules/tsearch-tests +++ b/modules/tsearch-tests @@ -21,7 +21,6 @@ TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-tsearch test_tsearch_LDADD = $(LDADD) @TEST_TSEARCH_LIBM@ -EXTRA_DIST += test-tsearch.sh License: LGPL
--- a/modules/uniname/uniname-tests +++ b/modules/uniname/uniname-tests @@ -14,5 +14,4 @@ check_PROGRAMS += test-uninames test_uninames_SOURCES = uniname/test-uninames.c test_uninames_LDADD = $(LDADD) @LIBINTL@ -EXTRA_DIST += uniname/test-uninames.sh uniname/UnicodeDataNames.txt
--- a/modules/unistdio/u16-vasnprintf-tests +++ b/modules/unistdio/u16-vasnprintf-tests @@ -28,4 +28,3 @@ test_u16_vasnprintf2_LDADD = $(LDADD) @LIBICONV@ test_u16_vasnprintf3_SOURCES = unistdio/test-u16-vasnprintf3.c test_u16_vasnprintf3_LDADD = $(LDADD) @LIBICONV@ -EXTRA_DIST += unistdio/test-u16-vasnprintf2.sh unistdio/test-u16-vasnprintf3.sh
--- a/modules/unistdio/u32-vasnprintf-tests +++ b/modules/unistdio/u32-vasnprintf-tests @@ -28,4 +28,3 @@ test_u32_vasnprintf2_LDADD = $(LDADD) @LIBICONV@ test_u32_vasnprintf3_SOURCES = unistdio/test-u32-vasnprintf3.c test_u32_vasnprintf3_LDADD = $(LDADD) @LIBICONV@ -EXTRA_DIST += unistdio/test-u32-vasnprintf2.sh unistdio/test-u32-vasnprintf3.sh
--- a/modules/unistdio/u8-vasnprintf-tests +++ b/modules/unistdio/u8-vasnprintf-tests @@ -28,4 +28,3 @@ test_u8_vasnprintf2_LDADD = $(LDADD) @LIBICONV@ test_u8_vasnprintf3_SOURCES = unistdio/test-u8-vasnprintf3.c test_u8_vasnprintf3_LDADD = $(LDADD) @LIBICONV@ -EXTRA_DIST += unistdio/test-u8-vasnprintf2.sh unistdio/test-u8-vasnprintf3.sh
--- a/modules/unistdio/ulc-vasnprintf-tests +++ b/modules/unistdio/ulc-vasnprintf-tests @@ -24,4 +24,3 @@ test_ulc_vasnprintf2_LDADD = $(LDADD) @LIBICONV@ test_ulc_vasnprintf3_SOURCES = unistdio/test-ulc-vasnprintf3.c test_ulc_vasnprintf3_LDADD = $(LDADD) @LIBICONV@ -EXTRA_DIST += unistdio/test-ulc-vasnprintf2.sh unistdio/test-ulc-vasnprintf3.sh
--- a/modules/vasnprintf-posix-tests +++ b/modules/vasnprintf-posix-tests @@ -15,4 +15,3 @@ TESTS += test-vasnprintf-posix test-vasnprintf-posix2.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' check_PROGRAMS += test-vasnprintf-posix test-vasnprintf-posix2 -EXTRA_DIST += test-vasnprintf-posix2.sh
--- a/modules/vfprintf-posix-tests +++ b/modules/vfprintf-posix-tests @@ -13,4 +13,3 @@ TESTS += test-vfprintf-posix.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-vfprintf-posix -EXTRA_DIST += test-vfprintf-posix.sh test-fprintf-posix.h test-printf-posix.output
--- a/modules/vprintf-posix-tests +++ b/modules/vprintf-posix-tests @@ -13,4 +13,3 @@ TESTS += test-vprintf-posix.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-vprintf-posix -EXTRA_DIST += test-vprintf-posix.sh test-printf-posix.h test-printf-posix.output
--- a/modules/vsnprintf-posix-tests +++ b/modules/vsnprintf-posix-tests @@ -13,5 +13,4 @@ Makefile.am: TESTS += test-vsnprintf-posix test-vsnprintf check_PROGRAMS += test-vsnprintf-posix test-vsnprintf -EXTRA_DIST += test-snprintf-posix.h
--- a/modules/vsprintf-posix-tests +++ b/modules/vsprintf-posix-tests @@ -10,5 +10,4 @@ Makefile.am: TESTS += test-vsprintf-posix check_PROGRAMS += test-vsprintf-posix -EXTRA_DIST += test-sprintf-posix.h
--- a/modules/xstrtoimax-tests +++ b/modules/xstrtoimax-tests @@ -10,5 +10,4 @@ TESTS += test-xstrtoimax.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-xstrtoimax -EXTRA_DIST += test-xstrtoimax.sh test_xstrtoimax_LDADD = $(LDADD) @LIBINTL@
--- a/modules/xstrtol-tests +++ b/modules/xstrtol-tests @@ -11,6 +11,5 @@ TESTS += test-xstrtol.sh TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-xstrtol test-xstrtoul -EXTRA_DIST += test-xstrtol.sh test_xstrtol_LDADD = $(LDADD) @LIBINTL@ test_xstrtoul_LDADD = $(LDADD) @LIBINTL@