source: trunk/test/yat_msg_error_test2.sh @ 3130

Last change on this file since 3130 was 3130, checked in by Peter, 8 years ago

merge release 0.11 into trunk

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#! /bin/sh
2# $Id: yat_msg_error_test2.sh 3130 2013-11-18 07:38:59Z peter $
3#
4# Copyright (C) 2011, 2012 Peter Johansson
5# Copyright (C) 2013 Jari Häkkinen, Peter Johansson
6#
7# This file is part of the yat library, http://dev.thep.lu.se/yat
8#
9# The yat library is free software; you can redistribute it
10# and/or modify it under the terms of the GNU General Public License as
11# published by the Free Software Foundation; either version 3 of the
12# License, or (at your option) any later version.
13#
14# The yat library is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with yat. If not, see <http://www.gnu.org/licenses/>.
21
22
23# test that YAT_MSG_ERROR does not make configure abort when placed
24# within an inactive if statement
25
26required="autoconf"
27
28set -e
29
30. test/init.sh || exit 99
31
32cat >> configure.ac <<EOF
33AC_PREREQ([2.63])
34AS_IF([test x = x], [], [YAT_MSG_ERROR([some message])])
35AC_CONFIG_FILES([Makefile])
36AC_OUTPUT
37EOF
38
39echo "@configure_input@" > Makefile.in
40
41bootstrap
42rm -f config.status
43run ./configure 0 $configure_opts
44
45exit_success
Note: See TracBrowser for help on using the repository browser.