ab72025e2f65d551f0c0bb4276efaa4eb59d92bc
[platform/upstream/automake.git] / tests / vala1.test
1 #! /bin/sh
2 # Copyright (C) 1996, 2001, 2002, 2006, 2008, 2009, 2011 Free Software
3 # Foundation, Inc.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18 # Test to make sure intermediate .c files are built from vala sources
19 # in non-recursive automake mode.
20
21 required="libtool"
22 . ./defs || Exit 1
23
24 cat >> 'configure.in' << 'END'
25 AC_PROG_CC
26 AM_PROG_AR
27 AC_PROG_LIBTOOL
28 AM_PROG_VALAC
29 AC_OUTPUT
30 END
31
32 cat > 'Makefile.am' <<'END'
33 bin_PROGRAMS = src/zardoz
34 src_zardoz_SOURCES = src/zardoz.vala
35
36 lib_LTLIBRARIES = src/libzardoz.la
37 src_libzardoz_la_SOURCES = src/zardoz-foo.vala src/zardoz-bar.vala
38 END
39
40 : > ltmain.sh
41 : > config.sub
42 : > config.guess
43
44 $ACLOCAL
45 $AUTOMAKE -a
46
47 grep 'VALAC' Makefile.in
48 grep 'src_zardoz_OBJECTS' Makefile.in
49 grep 'src_libzardoz_la_OBJECTS' Makefile.in
50 grep 'src_zardoz_vala.stamp' Makefile.in
51 grep 'src_libzardoz_la_vala.stamp' Makefile.in
52 grep 'zardoz\.c' Makefile.in
53 grep 'src/zardoz-foo\.c' Makefile.in