From: Stefano Lattarini Date: Sat, 5 Nov 2011 20:30:39 +0000 (+0100) Subject: tests: more faithful 'installcheck' support in few tests X-Git-Tag: ng-0.5a~89^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb52380d7a7bbedcd10fb9991420ae25ea27520f;p=thirdparty%2Fautomake.git tests: more faithful 'installcheck' support in few tests * tests/ar-lib5a.test: Use the `$am_scriptdir' variable instead of "$testsrcdir/../lib" or "$top_testsrcdir/lib", to test more faithfully under "make installcheck". * tests/ar-lib5a.test: Likewise. * tests/libobj-basic.test: Likewise. * tests/libobj19.test: Likewise. * tests/suffix5.test: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 3faaf178b..2269ed7f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2011-11-05 Stefano Lattarini + + tests: more faithful 'installcheck' support in few tests + * tests/ar-lib5a.test: Use the `$am_scriptdir' variable instead + of "$testsrcdir/../lib" or "$top_testsrcdir/lib", to test more + faithfully under "make installcheck". + * tests/ar-lib5a.test: Likewise. + * tests/libobj-basic.test: Likewise. + * tests/libobj19.test: Likewise. + * tests/suffix5.test: Likewise. + 2011-11-05 Stefano Lattarini tests: remove redundant settings of `errexit' shell flag diff --git a/tests/ar-lib5a.test b/tests/ar-lib5a.test index 8c9b6ebd9..8f1d2279c 100755 --- a/tests/ar-lib5a.test +++ b/tests/ar-lib5a.test @@ -50,9 +50,7 @@ int wish(void) { return 0; } END mkdir auxdir -# FIXME: make this "installcheck-aware" once we are merged into the -# 'testsuite-work' branch. -cat - "$testsrcdir"/../lib/ar-lib > auxdir/ar-lib << 'END' +cat - "$am_scriptdir/ar-lib" > auxdir/ar-lib << 'END' #! /bin/sh :> ar-lib-worked END diff --git a/tests/libobj-basic.test b/tests/libobj-basic.test index a31d7eb12..65782647c 100755 --- a/tests/libobj-basic.test +++ b/tests/libobj-basic.test @@ -78,8 +78,7 @@ cat > extra-checks.am << 'END' extra_checks = maude-src maude-dist liver-not-dist END -# FIXME: improve support for "installcheck" here. -cp "$top_testsrcdir/lib/ar-lib" . || Exit 99 +cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script \`ar-lib'" $ACLOCAL $AUTOCONF diff --git a/tests/libobj19.test b/tests/libobj19.test index 7fb65313b..79334d946 100755 --- a/tests/libobj19.test +++ b/tests/libobj19.test @@ -53,8 +53,7 @@ cat > libobj-dir/foobar.c << 'END' extern int dummy; END -# FIXME: improve support for "installcheck" here. -cp "$top_testsrcdir/lib/ar-lib" . || Exit 99 +cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script \`ar-lib'" $ACLOCAL $AUTOCONF diff --git a/tests/suffix5.test b/tests/suffix5.test index 113a40ad4..fcde0b68c 100755 --- a/tests/suffix5.test +++ b/tests/suffix5.test @@ -46,9 +46,8 @@ END : > ltmain.sh -# FIXME: better support for installcheck. for auxscript in ar-lib config.guess config.sub; do - cp "$top_testsrcdir/lib/$auxscript" . \ + cp "$am_scriptdir/$auxscript" . \ || fatal_ "fetching auxiliary script \`$auxscript'" done