For PR automake/234:
authorTom Tromey <tromey@redhat.com>
Tue, 1 Jan 2002 23:28:40 +0000 (23:28 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 1 Jan 2002 23:28:40 +0000 (23:28 +0000)
* tests/Makefile.am (TESTS): Added strip.test.
* tests/strip.test: New file.

ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/strip.test [new file with mode: 0755]

index 5835712..fc65a7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-01-01  Tom Tromey  <tromey@redhat.com>
 
+       For PR automake/234:
+       * tests/Makefile.am (TESTS): Added strip.test.
+       * tests/strip.test: New file.
+
        * automake.texi (Extending): Mention uninstall-hook.
        (Install): Likewise.
        * automake.in (handle_factored_dependencies): Allow
index 4263cf1..6f3d62a 100644 (file)
@@ -279,6 +279,7 @@ spelling.test \
 stamph.test \
 stamph2.test \
 stdlib.test \
+strip.test \
 subdir.test \
 subdir2.test \
 subdir3.test \
index 23e9de9..fb04f22 100644 (file)
@@ -352,6 +352,7 @@ spelling.test \
 stamph.test \
 stamph2.test \
 stdlib.test \
+strip.test \
 subdir.test \
 subdir2.test \
 subdir3.test \
@@ -531,6 +532,7 @@ install-am: all-am
 installcheck: installcheck-am
 install-strip:
        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         INSTALL_STRIP_FLAG=-s \
          `test -z '$(STRIP)' || \
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
 mostlyclean-generic:
diff --git a/tests/strip.test b/tests/strip.test
new file mode 100755 (executable)
index 0000000..154db66
--- /dev/null
@@ -0,0 +1,36 @@
+#! /bin/sh
+
+# Test for install-strip.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(foo, 0.1, dev@null)
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
+AC_PROG_CC
+AM_CONDITIONAL(FOOTEST, false)
+AC_CONFIG_FILES(Makefile)
+AC_OUTPUT
+END
+
+cat > Makefile.am << 'END'
+bin_SCRIPTS = foo
+END
+
+cat > foo << 'END'
+#! /bin/sh
+echo Maude
+END
+
+chmod +x foo
+
+set -e
+
+mkdir install
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE -a
+./configure --prefix=`cd install && pwd`
+make
+make install-strip