tests: work around strangeness in MSYS
[automake.git] / tests / vala1.test
blobab72025e2f65d551f0c0bb4276efaa4eb59d92bc
1 #! /bin/sh
2 # Copyright (C) 1996, 2001, 2002, 2006, 2008, 2009, 2011 Free Software
3 # Foundation, Inc.
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.
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.
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/>.
18 # Test to make sure intermediate .c files are built from vala sources
19 # in non-recursive automake mode.
21 required="libtool"
22 . ./defs || Exit 1
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
32 cat > 'Makefile.am' <<'END'
33 bin_PROGRAMS = src/zardoz
34 src_zardoz_SOURCES = src/zardoz.vala
36 lib_LTLIBRARIES = src/libzardoz.la
37 src_libzardoz_la_SOURCES = src/zardoz-foo.vala src/zardoz-bar.vala
38 END
40 : > ltmain.sh
41 : > config.sub
42 : > config.guess
44 $ACLOCAL
45 $AUTOMAKE -a
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