coverage: vala support failing for VPATH from-scratch builds
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 2 Sep 2011 07:56:20 +0000 (09:56 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 2 Sep 2011 08:00:04 +0000 (10:00 +0200)
* 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.

ChangeLog
THANKS
tests/Makefile.am
tests/Makefile.in
tests/vala-vpath.test [new file with mode: 0755]

index 5d0eda1..f7514d1 100644 (file)
--- 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 d91c5bb..f83e1fc 100644 (file)
--- 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:
index 6101460..4f8e0f6 100644 (file)
@@ -836,6 +836,7 @@ vala2.test \
 vala3.test \
 vala4.test \
 vala5.test \
+vala-vpath.test \
 vars.test \
 vars3.test \
 vartar.test \
index 108672d..32e3297 100644 (file)
@@ -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 (executable)
index 0000000..98e0f43
--- /dev/null
@@ -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
+
+: