From eb59c423d7addf124d33f50ac920789db1304adb Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 2 Sep 2011 09:56:20 +0200 Subject: [PATCH] coverage: vala support failing for VPATH from-scratch builds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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 | 9 ++++++++ THANKS | 1 + tests/Makefile.am | 1 + tests/Makefile.in | 1 + tests/vala-vpath.test | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 70 insertions(+) create mode 100755 tests/vala-vpath.test diff --git a/ChangeLog b/ChangeLog index 5d0eda1..f7514d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-09-02 Stefano Lattarini + + 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 docs: report few more automake parsing limitations diff --git a/THANKS b/THANKS index d91c5bb..f83e1fc 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 6101460..4f8e0f6 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 108672d..32e3297 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 0000000..98e0f43 --- /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 . + +# 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 + +: -- 2.7.4