diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-18 18:03:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-18 18:03:18 +0000 |
commit | e826cf1e931e56a27391f357253038be01f25396 (patch) | |
tree | 2f3195394c18fc3fde2b8ef8ef4de296e96d4a08 /Build/source/texk/tests | |
parent | 265ec325225e513352908a8d61e2d0bc06d6ca09 (diff) |
move common-test.pl to common directory; new popen/gzip test for dvipsk
git-svn-id: svn://tug.org/texlive/trunk@17085 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/tests')
-rw-r--r-- | Build/source/texk/tests/common-test.pl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/texk/tests/common-test.pl b/Build/source/texk/tests/common-test.pl new file mode 100644 index 00000000000..414168a9648 --- /dev/null +++ b/Build/source/texk/tests/common-test.pl @@ -0,0 +1,24 @@ +# $Id: common-test.pl 16695 2010-01-13 01:18:02Z karl $ +# Public domain. Originally written 2010, Karl Berry. +# Common definitions for Perl tests in TeX Live. We want to use Perl to +# have a chance of running the tests on Windows. + +$ENV{"TEXMFCNF"} = "$srcdir/../kpathsea"; +$ENV{"BIBINPUTS"} = "$srcdir/tests"; +$ENV{"BSTINPUTS"} = "$srcdir/tests"; +$ENV{"TEXINPUTS"} = "$srcdir/tests"; + +# Run PROG with ARGS. Return the exit status. +# Die if PROG is not executable. +# +sub test_run +{ + my ($prog, @args) = @_; + + # Possibly we should check that $prog starts with ./, since we always + # want to run out of the build dir. I think. + die "$0: no program $prog in " . `pwd` if ! -x $prog; + + my $ret = system ($prog, @args); + return $ret; +} |