]> sourceware.org Git - automake.git/commitdiff
* nostdinc.test: New file.
authorTom Tromey <tromey@redhat.com>
Tue, 14 Dec 1999 03:57:18 +0000 (03:57 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 14 Dec 1999 03:57:18 +0000 (03:57 +0000)
* Makefile.am (TESTS): Added nostdinc.test.

* condincl2.test: New file.
* condincl.test: New file.
* Makefile.am (TESTS): Added condincl.test, condincl2.test.

* suffix2.test: New file.
* Makefile.am (TESTS): Added suffix2.test.

tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/condincl.test [new file with mode: 0755]
tests/condincl2.test [new file with mode: 0755]
tests/nostdinc.test [new file with mode: 0755]
tests/suffix2.test [new file with mode: 0755]

index 1047b06de568365a257373bad1e0fa9410098f88..1e85255db9f8a7fffc32b0690e6154d18ad623ad 100644 (file)
@@ -1,5 +1,15 @@
 1999-12-13  Tom Tromey  <tromey@cygnus.com>
 
+       * nostdinc.test: New file.
+       * Makefile.am (TESTS): Added nostdinc.test.
+
+       * condincl2.test: New file.
+       * condincl.test: New file.
+       * Makefile.am (TESTS): Added condincl.test, condincl2.test.
+
+       * suffix2.test: New file.
+       * Makefile.am (TESTS): Added suffix2.test.
+
        * subobj.test: Remove final test.
 
 1999-12-12  Tom Tromey  <tromey@cygnus.com>
index 6dee11e186daad9a4225502450faf399b5075ba3..a81e0ddce1c68ab4cda6ac1504ade9bf4bcba184 100644 (file)
@@ -54,6 +54,8 @@ cond6.test \
 cond7.test \
 cond8.test \
 cond9.test \
+condincl.test \
+condincl2.test \
 condman.test \
 condman2.test \
 conf2.test \
@@ -157,6 +159,7 @@ mkinstall.test \
 nodep.test \
 nodist.test \
 noinst.test \
+nostdinc.test \
 number.test \
 objc.test \
 obsolete.test \
@@ -213,6 +216,7 @@ subobj2.test \
 subobj3.test \
 subst.test \
 suffix.test \
+suffix2.test \
 symlink.test \
 syntax.test \
 tags.test \
index 4e48a28161ba5630c8d6277b5626008533d49b3a..38101f8179d172da8a45e4cc3006aa3959047a88 100644 (file)
@@ -121,6 +121,8 @@ cond6.test \
 cond7.test \
 cond8.test \
 cond9.test \
+condincl.test \
+condincl2.test \
 condman.test \
 condman2.test \
 conf2.test \
@@ -224,6 +226,7 @@ mkinstall.test \
 nodep.test \
 nodist.test \
 noinst.test \
+nostdinc.test \
 number.test \
 objc.test \
 obsolete.test \
@@ -280,6 +283,7 @@ subobj2.test \
 subobj3.test \
 subst.test \
 suffix.test \
+suffix2.test \
 symlink.test \
 syntax.test \
 tags.test \
diff --git a/tests/condincl.test b/tests/condincl.test
new file mode 100755 (executable)
index 0000000..5e95f64
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh
+
+# Make sure a conditional include statement is handled properly.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AM_CONDITIONAL(TOBE, false)
+END
+
+cat > Makefile.am << 'END'
+if TOBE
+include adjunct
+endif
+END
+
+cat > adjunct << 'END'
+target: dependency
+       rule
+END
+
+$AUTOMAKE || exit 1
+
+grep '^target' Makefile.in && exit 1
+exit 0
diff --git a/tests/condincl2.test b/tests/condincl2.test
new file mode 100755 (executable)
index 0000000..59b2a29
--- /dev/null
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+# Another test of conditional include statements.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AM_CONDITIONAL(TOBE, false)
+END
+
+cat > Makefile.am << 'END'
+if TOBE
+include adjunct
+endif
+END
+
+cat > adjunct << 'END'
+target: dependency
+       rule
+endif
+END
+
+$AUTOMAKE && exit 1
+exit 0
diff --git a/tests/nostdinc.test b/tests/nostdinc.test
new file mode 100755 (executable)
index 0000000..aea1e3e
--- /dev/null
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+# Test to make sure nostdinc option works correctly.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+END
+
+cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = nostdinc
+bin_PROGRAMS = foo
+foo_SOURCES = foo.c
+END
+
+$AUTOMAKE || exit 1
+
+fgrep -e '-I.' Makefile.in && exit 1
+exit 0
diff --git a/tests/suffix2.test b/tests/suffix2.test
new file mode 100755 (executable)
index 0000000..4e02113
--- /dev/null
@@ -0,0 +1,28 @@
+#! /bin/sh
+
+# Test to make sure .c.o rule is only included once.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+AC_PROG_LIBTOOL
+END
+
+cat > Makefile.am << 'END'
+lib_LTLIBRARIES = libltdl.la
+libltdl_la_SOURCES = ltdl.c ltdl.h
+END
+
+: > ltdl.c
+: > ltdl.h
+
+: > ltconfig
+: > ltmain.sh
+
+$AUTOMAKE -a || exit 1
+
+test "`fgrep '.c.o' Makefile.in | wc -l`" -eq 1
+
+# FIXME: make this fail just like the real ltdl
+exit 1
This page took 0.035177 seconds and 5 git commands to generate.