diff options
author | Karl Berry <karl@freefriends.org> | 2017-03-27 18:00:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-03-27 18:00:45 +0000 |
commit | f6e2e4efbdd44ba2ce51fc1555361c23ec6c8beb (patch) | |
tree | 9997ce03ee8a6032c671c664ff04abc7e89e5729 /Build/source/utils/autosp | |
parent | d87f8cf45a06f7b5db4d26d44843a947ab47f55f (diff) |
Makefile.am (AM_TESTS_ENVIRONMENT): use instead of TESTS_ENVIRONMENT, per
https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html
Means explicitly exporting all variables, unfortunately.
(EXTRA_DIST): correct Tlpatches typo to TLpatches.
git-svn-id: svn://tug.org/texlive/trunk@43617 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/autosp')
-rw-r--r-- | Build/source/utils/autosp/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/utils/autosp/Makefile.am | 16 | ||||
-rw-r--r-- | Build/source/utils/autosp/Makefile.in | 8 | ||||
-rwxr-xr-x | Build/source/utils/autosp/autosp-src/autosp.test | 13 |
4 files changed, 16 insertions, 26 deletions
diff --git a/Build/source/utils/autosp/ChangeLog b/Build/source/utils/autosp/ChangeLog index 3fa8fec2511..d7cb4ecc54e 100644 --- a/Build/source/utils/autosp/ChangeLog +++ b/Build/source/utils/autosp/ChangeLog @@ -1,3 +1,8 @@ +2017-03-27 Karl Berry <karl@freefriends.org> + + * Makefile.am (AM_TESTS_ENVIRONMENT): use instead of TESTS_ENVIRONMENT. + * autosp.test: adapt. + 2017-02-28 Akira Kakuto <kakuto@fuk.kindai.ac.jp> * Import autosp-2016-11-02. diff --git a/Build/source/utils/autosp/Makefile.am b/Build/source/utils/autosp/Makefile.am index 67ff083e9f8..f81903da849 100644 --- a/Build/source/utils/autosp/Makefile.am +++ b/Build/source/utils/autosp/Makefile.am @@ -1,9 +1,9 @@ ## $Id$ ## Makefile.am for the TeX Live subdirectory utils/autosp/ ## -## Copyright 2016 Karl Berry <tex-live@tug.org> +## Copyright 2016-2017 Karl Berry <tex-live@tug.org> ## You may freely use, modify and/or distribute this file. -## + ## We want to re-distribute the whole original ps2eps source tree. EXTRA_DIST = $(AUTOSP_TREE) @@ -27,17 +27,11 @@ man1_MANS = \ $(AUTOSP_TREE)/autosp.1 ## Tests - -# We want to use the test and tests/ tree from the original dist. -# So as to avoid embedding the original dist dir name in the test -# script, we use $test_srcdir, defined here. -AM_TESTS_ENVIRONMENT = test_srcdir=$(srcdir)/$(AUTOSP_TREE)/tests; - +AM_TESTS_ENVIRONMENT = AUTOSP_TREE=$(AUTOSP_TREE); export AUTOSP_TREE; +# TESTS = $(AUTOSP_TREE)/autosp.test EXTRA_DIST += $(TESTS) autosp.log: autosp$(EXEEXT) - +# ## autosp.test files EXTRA_DIST += $(AUTOSP_TREE)/tests - - diff --git a/Build/source/utils/autosp/Makefile.in b/Build/source/utils/autosp/Makefile.in index 51963ab0ff9..a8e88f2b9c0 100644 --- a/Build/source/utils/autosp/Makefile.in +++ b/Build/source/utils/autosp/Makefile.in @@ -488,6 +488,7 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ +# EXTRA_DIST = $(AUTOSP_TREE) $(TESTS) $(AUTOSP_TREE)/tests NEVER_DIST = `find . $(NEVER_NAMES)` @@ -505,11 +506,8 @@ autosp_SOURCES = \ man1_MANS = \ $(AUTOSP_TREE)/autosp.1 - -# We want to use the test and tests/ tree from the original dist. -# So as to avoid embedding the original dist dir name in the test -# script, we use $test_srcdir, defined here. -AM_TESTS_ENVIRONMENT = test_srcdir=$(srcdir)/$(AUTOSP_TREE)/tests; +AM_TESTS_ENVIRONMENT = AUTOSP_TREE=$(AUTOSP_TREE); export AUTOSP_TREE; +# TESTS = $(AUTOSP_TREE)/autosp.test all: all-am diff --git a/Build/source/utils/autosp/autosp-src/autosp.test b/Build/source/utils/autosp/autosp-src/autosp.test index d4610464610..2b04f6601f6 100755 --- a/Build/source/utils/autosp/autosp-src/autosp.test +++ b/Build/source/utils/autosp/autosp-src/autosp.test @@ -1,15 +1,8 @@ #! /bin/sh - -# Copyright 2016 Karl Berry <tex-live@tug.org> +# Copyright 2016-2017 Karl Berry <tex-live@tug.org> # Copyright 2015 Peter Breitenlohner <tex-live@tug.org> # You may freely use, modify and/or distribute this file. -if test -z "$test_srcdir"; then - # If not set, then we are not running from `make check'. - test_srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'` # == dirname $0 - test "$test_srcdir" = "$0" && test_srcdir=. # in case subst failed -fi - echo && echo "*** autosp --help" ./autosp --help || exit 1 @@ -20,9 +13,9 @@ echo && echo "*** autosp -dd (missing infile)" ./autosp -dd && exit 1 echo && echo "*** autosp tests/quod2.aspc quod2.aspc" -cp $test_srcdir/tests/quod2.aspc . +cp $srcdir/$AUTOSP_TREE/tests/quod2.aspc . rm -f quod2.tex ./autosp quod2.aspc || exit 1 echo && echo "*** diff quod2.tex tests/quod2.tex" -diff quod2.tex $test_srcdir/tests/quod2.tex || exit 1 +diff quod2.tex $srcdir/$AUTOSP_TREE/tests/quod2.tex || exit 1 |