summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-09-02 09:56:20 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-09-02 10:00:04 +0200
commiteb59c423d7addf124d33f50ac920789db1304adb (patch)
treef3c17f86143cfc78c539a33b31b2e4672d1ea7b0
parent1dcba7b847b137330ed91ef8269d403163387e7e (diff)
downloadautomake-eb59c423d7addf124d33f50ac920789db1304adb.tar.gz
coverage: vala support failing for VPATH from-scratch builds
* tests/vala-vpath.test: New test, xfailing. * tests/Makefile.am (TESTS): Update. * THANKS: Update. From a report by Zbigniew Jędrzejewski-Szmek. Related to automake bug#8753.
-rw-r--r--ChangeLog9
-rw-r--r--THANKS1
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/Makefile.in1
-rwxr-xr-xtests/vala-vpath.test58
5 files changed, 70 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d0eda1f2..f7514d170 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-09-02 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ coverage: vala support failing for VPATH from-scratch builds
+ * tests/vala-vpath.test: New test, xfailing.
+ * tests/Makefile.am (TESTS): Update.
+ * THANKS: Update.
+ From a report by Zbigniew Jędrzejewski-Szmek.
+ Related to automake bug#8753.
+
2011-09-01 Stefano Lattarini <stefano.lattarini@gmail.com>
docs: report few more automake parsing limitations
diff --git a/THANKS b/THANKS
index d91c5bb2c..f83e1fce4 100644
--- a/THANKS
+++ b/THANKS
@@ -365,6 +365,7 @@ William S Fulton wsf@fultondesigns.co.uk
Yann Droneaud ydroneaud@meuh.eu.org
Younes Younes younes@cs.tu-berlin.de
Zack Weinberg zack@codesourcery.com
+Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl
Zoltan Rado z.rado@chello.hu
;; Local Variables:
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 61014608a..4f8e0f605 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -836,6 +836,7 @@ vala2.test \
vala3.test \
vala4.test \
vala5.test \
+vala-vpath.test \
vars.test \
vars3.test \
vartar.test \
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 108672d3f..32e32976b 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -1114,6 +1114,7 @@ vala2.test \
vala3.test \
vala4.test \
vala5.test \
+vala-vpath.test \
vars.test \
vars3.test \
vartar.test \
diff --git a/tests/vala-vpath.test b/tests/vala-vpath.test
new file mode 100755
index 000000000..98e0f4333
--- /dev/null
+++ b/tests/vala-vpath.test
@@ -0,0 +1,58 @@
+#! /bin/sh
+# Copyright (C) 2011 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/>.
+
+# Test to make sure vala support handles from-scratch VPATH builds.
+# See automake bug#8753.
+
+required="valac"
+. ./defs || Exit 1
+
+set -e
+
+mkdir src
+
+cat >> configure.in << 'END'
+AC_CONFIG_SRCDIR([hello.vala])
+AC_PROG_CC
+AM_PROG_VALAC([0.7])
+AC_OUTPUT
+END
+
+
+cat > Makefile.am <<'END'
+bin_PROGRAMS = foo
+foo_SOURCES = hello.vala
+END
+
+cat > hello.vala <<'END'
+void main ()
+{
+ stdout.printf ("foo\n");
+ return 0;
+}
+END
+
+$ACLOCAL || framework_failure_ "aclocal error"
+$AUTOCONF || framework_failure_ "autoconf error"
+$AUTOMAKE || framework_failure_ "automake error"
+
+mkdir build
+cd build
+../configure || Exit 77
+$MAKE
+$MAKE distcheck
+
+: