summaryrefslogtreecommitdiff
path: root/tests/man2.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/man2.test')
-rwxr-xr-xtests/man2.test31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/man2.test b/tests/man2.test
new file mode 100755
index 000000000..28ddb86bd
--- /dev/null
+++ b/tests/man2.test
@@ -0,0 +1,31 @@
+#! /bin/sh
+
+# Make sure that man pages listed in man_MANS are installed and
+# renamed as documented.
+
+. $srcdir/defs || exit 1
+
+set -e
+
+echo AC_OUTPUT >> configure.in
+
+cat > Makefile.am << 'END'
+man_MANS = foo.2
+man4_MANS = foo.4 bar.man
+END
+
+: > foo.2
+: > foo.4
+: > bar.man
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+
+# Let's play with $DESTDIR too, it shouldn't hurt.
+./configure --prefix=''
+$MAKE DESTDIR=$PWD/=inst install
+
+test -f ./=inst/man/man2/foo.2
+test -f ./=inst/man/man4/foo.4
+test -f ./=inst/man/man4/bar.4