Hash :
96afe638
Author :
Date :
2012-08-04T18:36:24
tests: reimplement wrappers for automake and aclocal in perl
This will allow us to avoid one extra shell invocation per automake
and aclocal invocation in our testsuite, and, more importantly, will
allow us not to worry about potential shell portability issues, at
least in those wrappers. For an example of such a portability issue,
refer to the recent commit v1.12.2-80-g65dadf6 "tests: work around a
ksh bug w.r.t. ${1+"$@"}".
* t/wrap/automake.in, t/wrap/aclocal.in: Rewritten in perl.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
#!@PERL@ -w
# @configure_input@
# Copyright (C) 2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
BEGIN
{
use strict;
my $libdir;
$libdir = '@abs_top_srcdir@/lib';
$libdir = '@abs_top_builddir@/lib' . '@PATH_SEPARATOR@' . $libdir
if '@srcdir@' ne '.';
$ENV{perllibdir} = $libdir;
unshift @ARGV, '--libdir=@abs_top_srcdir@/lib';
}
require '@abs_top_builddir@/automake';