* tests/amhello-binpkg.test: Use `$top_testsrcdir' instead of `$testsrcdir/..'. * tests/amhello-cflags.test: Likewise. * tests/amhello-cross-compile.test: Likewise. --- ChangeLog | 8 ++++++++ tests/amhello-binpkg.test | 2 +- tests/amhello-cflags.test | 2 +- tests/amhello-cross-compile.test | 4 ++-- 4 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog index d2771d9..beb4296 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2011-09-02 Stefano Lattarini <stefano.lattar...@gmail.com> + tests: more uses of `$top_testsrcdir', in the `amhello' tests + * tests/amhello-binpkg.test: Use `$top_testsrcdir' instead + of `$testsrcdir/..'. + * tests/amhello-cflags.test: Likewise. + * tests/amhello-cross-compile.test: Likewise. + +2011-09-02 Stefano Lattarini <stefano.lattar...@gmail.com> + tests: avoid creating useless files in the `amhello' tests * tests/amhello-binpkg.test: Define `$am_create_testdir' to "empty" before sourcing ./defs, to avoid bringing in unused diff --git a/tests/amhello-binpkg.test b/tests/amhello-binpkg.test index 2d57e88..00238e8 100755 --- a/tests/amhello-binpkg.test +++ b/tests/amhello-binpkg.test @@ -20,7 +20,7 @@ am_create_testdir=empty . ./defs || Exit 1 -cp "$testsrcdir"/../doc/amhello-1.0.tar.gz . \ +cp "$top_testsrcdir"/doc/amhello-1.0.tar.gz . \ || fatal_ "cannot get amhello tarball" gzip -dc amhello-1.0.tar.gz | tar xf - diff --git a/tests/amhello-cflags.test b/tests/amhello-cflags.test index 3ec54b8..5811f45 100755 --- a/tests/amhello-cflags.test +++ b/tests/amhello-cflags.test @@ -22,7 +22,7 @@ am_create_testdir=empty required=gcc . ./defs || Exit 1 -cp "$testsrcdir"/../doc/amhello-1.0.tar.gz . \ +cp "$top_testsrcdir"/doc/amhello-1.0.tar.gz . \ || fatal_ "cannot get amhello tarball" gzip -dc amhello-1.0.tar.gz | tar xf - diff --git a/tests/amhello-cross-compile.test b/tests/amhello-cross-compile.test index a4a21d1..cd00307 100755 --- a/tests/amhello-cross-compile.test +++ b/tests/amhello-cross-compile.test @@ -21,11 +21,11 @@ am_create_testdir=empty required=i586-mingw32msvc-gcc . ./defs || Exit 1 -cp "$testsrcdir"/../doc/amhello-1.0.tar.gz . \ +cp "$top_testsrcdir"/doc/amhello-1.0.tar.gz . \ || fatal_ "cannot get amhello tarball" host=i586-mingw32msvc -build=`"$testsrcdir"/../lib/config.guess` && test -n "$build" \ +build=`"$top_testsrcdir"/lib/config.guess` && test -n "$build" \ || fatal_ "cannot guess build platform" case $build in *mingw*) skip_ "build system is MinGW too";; esac -- 1.7.2.3