[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] objc: test more automatic dependency tracking
From: |
Peter Breitenlohner |
Subject: |
[PATCH 6/6] objc: test more automatic dependency tracking |
Date: |
Mon, 30 Apr 2012 11:12:16 +0200 |
* t/objc-deps2.sh: New test.
Signed-off-by: Peter Breitenlohner <address@hidden>
---
t/objc-deps2.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
create mode 100755 t/objc-deps2.sh
diff --git a/t/objc-deps2.sh b/t/objc-deps2.sh
new file mode 100755
index 0000000..9b2dba8
--- /dev/null
+++ b/t/objc-deps2.sh
@@ -0,0 +1,49 @@
+#! /bin/sh
+# Copyright (C) 2012 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Make sure dependency tracking works for ObjC.
+
+required=gcc
+. ./defs || Exit 1
+
+cat >> configure.ac << 'END'
+AC_PROG_OBJC([gcc])
+AC_OUTPUT
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = convert
+convert_SOURCES = convert.m
+END
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+./configure >stdout || exit 77 # in case gcc does not support ObjC
+cat stdout
+
+# Configure must be checking the dependency style of gcc ...
+grep 'dependency style of gcc' stdout >filt
+cat filt
+
+# ... only once.
+test `wc -l < filt` = 1
+
+# Accept any outcome but 'none'
+# (at the time of writing it should be gcc or gcc3).
+grep -v none filt
+
+:
--
1.7.3.1
- [PATCH 2/6] objc: test global, per-target, and user flags, (continued)
- [PATCH 2/6] objc: test global, per-target, and user flags, Peter Breitenlohner, 2012/04/30
- [PATCH 4/6] objc: test automatic dependency tracking, Peter Breitenlohner, 2012/04/30
- [PATCH 3/6] objc++: test automatic dependency tracking, Peter Breitenlohner, 2012/04/30
- [PATCH 1/6] objc++: test global, per-target, and user flags, Peter Breitenlohner, 2012/04/30
- [PATCH 5/6] objc++: test more automatic dependency tracking, Peter Breitenlohner, 2012/04/30
- [PATCH 6/6] objc: test more automatic dependency tracking,
Peter Breitenlohner <=