[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
307-gary-test-ltdl-dist-rules
From: |
Gary V. Vaughan |
Subject: |
307-gary-test-ltdl-dist-rules |
Date: |
Sat, 10 Mar 2007 14:08:51 +0000 (GMT) |
User-agent: |
mailnotify/0.7 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I see that HEAD now does this correctly, but I don't see any regression
tests. I've factored these from my earlier (Nov'05) patch.
Okay to commit?
Index: ChangeLog
from Gary V. Vaughan <address@hidden>
* tests/nonrecursive.at, tests/recursive.at, tests/standalone.at,
tests/subproject.at: New tests to ensure that each of the libltdl
installation types are correctly added to a distribution tarball,
and can be successfully built from the same.
Index: tests/nonrecursive.at
===================================================================
RCS file: /sources/libtool/libtool/tests/nonrecursive.at,v
retrieving revision 1.8
diff -u -u -r1.8 nonrecursive.at
--- tests/nonrecursive.at 26 Oct 2006 20:39:04 -0000 1.8
+++ tests/nonrecursive.at 10 Mar 2007 14:06:41 -0000
@@ -138,5 +138,36 @@
AT_CLEANUP
+
+## --------------------------------- ##
+## Distributing libtoolized project. ##
+## --------------------------------- ##
+
+AT_SETUP([distributing libltdl])
+
+test ! -d subdirectory-demo-[]AT_PACKAGE_VERSION || {
+ find subdirectory-demo-[]AT_PACKAGE_VERSION -type d ! -perm -200 \
+ -exec chmod u+w {} ';' &&
+ rm -fr subdirectory-demo-[]AT_PACKAGE_VERSION
+}
+
+_LTDL_SETUP
+
+LT_AT_LIBTOOLIZE([--copy --ltdl --install --nonrecursive])
+AT_CHECK([if test -f ltdl/configure.ac; then false; fi])
+
+
+# Support vanilla autoconf-2.59 & automake-1.9.6
+for file in argz.c lt__dirent.c lt__strl.c; do
+ cp ltdl/$file $file
+done
+
+LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [], [--add-missing --copy],
+ [], [], [all distcheck])
+
+AT_XFAIL_IF([test -f subdirectory-demo-]AT_PACKAGE_VERSION[.tar.gz || false])
+
+AT_CLEANUP
+
dnl Be careful not to let the definition leak into other tests
m4_popdef([_LTDL_SETUP])
Index: tests/recursive.at
===================================================================
RCS file: /sources/libtool/libtool/tests/recursive.at,v
retrieving revision 1.5
diff -u -u -r1.5 recursive.at
--- tests/recursive.at 26 Oct 2006 20:39:04 -0000 1.5
+++ tests/recursive.at 10 Mar 2007 14:06:41 -0000
@@ -109,5 +109,30 @@
AT_CLEANUP
+
+## --------------------------------- ##
+## Distributing libtoolized project. ##
+## --------------------------------- ##
+
+AT_SETUP([distributing libltdl])
+
+test ! -d subdirectory-demo-[]AT_PACKAGE_VERSION || {
+ find subdirectory-demo-[]AT_PACKAGE_VERSION -type d ! -perm -200 \
+ -exec chmod u+w {} ';' &&
+ rm -fr subdirectory-demo-[]AT_PACKAGE_VERSION
+}
+
+_LTDL_SETUP
+
+LT_AT_LIBTOOLIZE([--copy --ltdl --install --recursive])
+AT_CHECK([if test -f ltdl/configure.ac; then false; fi])
+
+LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [], [--add-missing --copy],
+ [], [], [all distcheck])
+
+AT_XFAIL_IF([test -f subdirectory-demo-]AT_PACKAGE_VERSION[.tar.gz || false])
+
+AT_CLEANUP
+
dnl Be careful not to let the definition leak into other tests
m4_popdef([_LTDL_SETUP])
Index: tests/standalone.at
===================================================================
RCS file: /sources/libtool/libtool/tests/standalone.at,v
retrieving revision 1.6
diff -u -u -r1.6 standalone.at
--- tests/standalone.at 16 Dec 2005 16:15:32 -0000 1.6
+++ tests/standalone.at 10 Mar 2007 14:06:41 -0000
@@ -67,6 +67,27 @@
AT_CLEANUP
+## --------------------------------- ##
+## Distributing libtoolized project. ##
+## --------------------------------- ##
+
+AT_SETUP([distributing libltdl])
+
+test ! -d libltdl-[]AT_PACKAGE_VERSION || {
+ find libltdl-[]AT_PACKAGE_VERSION -type d ! -perm -200 \
+ -exec chmod u+w {} ';' &&
+ rm -fr libltdl-[]AT_PACKAGE_VERSION
+}
+
+LT_AT_LIBTOOLIZE([--copy --ltdl=. --install])
+LT_AT_CONFIGURE([--enable-ltdl-install --prefix=$prefix])
+LT_AT_MAKE([all distcheck])
+
+AT_CHECK([test -f libltdl-]AT_PACKAGE_VERSION[.tar.gz])
+
+AT_CLEANUP
+
+
## ----------------------------------------------- ##
## libltdl is usable without Autoconf or Automake. ##
## ----------------------------------------------- ##
Index: tests/subproject.at
===================================================================
RCS file: /sources/libtool/libtool/tests/subproject.at,v
retrieving revision 1.11
diff -u -u -r1.11 subproject.at
--- tests/subproject.at 16 Dec 2005 16:15:32 -0000 1.11
+++ tests/subproject.at 10 Mar 2007 14:06:41 -0000
@@ -97,6 +97,28 @@
AT_CLEANUP
+## --------------------------------- ##
+## Distributing libtoolized project. ##
+## --------------------------------- ##
+
+AT_SETUP([distributing libltdl])
+
+test ! -d subproject-demo-[]AT_PACKAGE_VERSION || {
+ find subproject-demo-[]AT_PACKAGE_VERSION -type d ! -perm -200 \
+ -exec chmod u+w {} ';' &&
+ rm -fr subproject-demo-[]AT_PACKAGE_VERSION
+}
+
+_LTDL_SETUP
+
+LT_AT_BOOTSTRAP([--copy --ltdl --install], [-I sub/ltdl/m4], [ignore],
+ [--add-missing --copy], [], [], [all distcheck])
+
+AT_CHECK([test -f subproject-demo-]AT_PACKAGE_VERSION[.tar.gz])
+
+AT_CLEANUP
+
+
## ----------------------------------------------- ##
## libltdl is usable without Autoconf or Automake. ##
## ----------------------------------------------- ##
_________________________________________________________
This patch notification generated by vcsapply version 1.0
http://savannah.gnu.org/projects/cvs-utils
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFF8rvxFRMICSmD1gYRAnT8AJ4pJu2fZNkgxuDWnOqtiz+AX/ia2gCfSfv3
qWQZxg4AjL0van9brrCGWYI=
=9KxN
-----END PGP SIGNATURE-----
- 307-gary-test-ltdl-dist-rules,
Gary V. Vaughan <=