source: trunk/test/yat_use_libtool_tag_test.sh @ 3036

Last change on this file since 3036 was 3036, checked in by Peter, 10 years ago

common_defs does two things: 1) init test scripts 2) defines some variables. Decouple these into two files: defs.sh and init.sh.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#! /bin/sh
2# $Id: yat_use_libtool_tag_test.sh 3036 2013-06-03 08:19:32Z peter $
3#
4# Copyright (C) 2013 Peter Johansson
5#
6# This file is part of the yat library, http://dev.thep.lu.se/yat
7#
8# The yat library is free software; you can redistribute it
9# and/or modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 3 of the
11# License, or (at your option) any later version.
12#
13# The yat library is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16# General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with yat. If not, see <http://www.gnu.org/licenses/>.
20
21required="autoconf"
22set -e
23. ./test/init.sh || exit 99
24
25cat >> configure.ac <<EOF
26m4_include([m4/yat_lt_link_ifelse.m4])
27grep_tag1 pre:_YAT_USE_LIBTOOL_TAG:post
28AC_LANG([C++])
29grep_tag2 pre:_YAT_USE_LIBTOOL_TAG:post
30AC_LANG([Fortran 77])
31grep_tag3 pre:_YAT_USE_LIBTOOL_TAG:post
32AC_LANG([Fortran])
33grep_tag4 pre:_YAT_USE_LIBTOOL_TAG:post
34EOF
35
36# bootstrapping
37bootstrap
38
39grep '^grep_tag' configure
40grep '^grep_tag1' configure | grep 'pre:CC:post' || exit_fail
41grep '^grep_tag2' configure | grep 'pre:CXX:post' || exit_fail
42grep '^grep_tag3' configure | grep 'pre:F77:post' || exit_fail
43grep '^grep_tag4' configure | grep 'pre:FC:post' || exit_fail
44
45exit_success
Note: See TracBrowser for help on using the repository browser.