automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: use the get_shell_script helper function


From: Peter Rosin
Subject: [PATCH] tests: use the get_shell_script helper function
Date: Thu, 1 Mar 2012 09:28:57 +0100

tests/libobj-basic.test: Use the get_shell_script convenience
function instead of doing an inferior local hack.
tests/libobj10.test: Likewise.
tests/libobj19.test: Likewise.
tests/pr401.test: Likewise.
tests/pr401b.test: Likewise.
tests/pr401c.test: Likewise.
---
 tests/libobj-basic.test |    2 +-
 tests/libobj10.test     |    2 +-
 tests/libobj19.test     |    4 ++--
 tests/pr401.test        |    2 +-
 tests/pr401b.test       |    2 +-
 tests/pr401c.test       |    2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

Hi!

I happened to notice get_shell_script in some test, and am thus
proposing this patch.  Ok for master?

Cheers,
Peter

diff --git a/tests/libobj-basic.test b/tests/libobj-basic.test
index 1165f1e..e8ce222 100755
--- a/tests/libobj-basic.test
+++ b/tests/libobj-basic.test
@@ -78,7 +78,7 @@ cat > extra-checks.am << 'END'
 extra_checks = maude-src maude-dist liver-not-dist
 END
 
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
+get_shell_script ar-lib
 
 $ACLOCAL
 $AUTOCONF
diff --git a/tests/libobj10.test b/tests/libobj10.test
index f19de74..62fb9cf 100755
--- a/tests/libobj10.test
+++ b/tests/libobj10.test
@@ -41,7 +41,7 @@ debugging:
        $(AR) t libfoo.a
 END
 
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
+get_shell_script ar-lib
 
 $ACLOCAL
 $AUTOCONF
diff --git a/tests/libobj19.test b/tests/libobj19.test
index 4d9e283..036d846 100755
--- a/tests/libobj19.test
+++ b/tests/libobj19.test
@@ -54,8 +54,8 @@ cat > libobj-dir/foobar.c << 'END'
 extern int dummy;
 END
 
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
-cp "$am_scriptdir/compile" . || fatal_ "fetching auxiliary script 'compile'"
+get_shell_script ar-lib
+get_shell_script compile
 
 $ACLOCAL
 $AUTOCONF
diff --git a/tests/pr401.test b/tests/pr401.test
index a143498..a34b13f 100755
--- a/tests/pr401.test
+++ b/tests/pr401.test
@@ -79,7 +79,7 @@ TESTS = main
 endif
 EOF
 
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
+get_shell_script ar-lib
 
 $ACLOCAL
 $AUTOCONF
diff --git a/tests/pr401b.test b/tests/pr401b.test
index 3d15671..279184d 100755
--- a/tests/pr401b.test
+++ b/tests/pr401b.test
@@ -79,7 +79,7 @@ TESTS = main
 endif
 EOF
 
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
+get_shell_script ar-lib
 
 libtoolize
 $ACLOCAL
diff --git a/tests/pr401c.test b/tests/pr401c.test
index 1f238f6..6f3dc21 100755
--- a/tests/pr401c.test
+++ b/tests/pr401c.test
@@ -81,7 +81,7 @@ TESTS = main
 endif
 EOF
 
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
+get_shell_script ar-lib
 
 $ACLOCAL
 $AUTOCONF
-- 
1.7.9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]