source: trunk/test/documentation_test.sh.in @ 2202

Last change on this file since 2202 was 2202, checked in by Peter, 12 years ago

merging release 0.6 into trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#!@SHELL@
2# @configure_input@
3
4# $Id: documentation_test.sh.in 2202 2010-02-21 18:39:13Z peter $
5
6# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2009, 2010 Peter Johansson
8#
9# This file is part of the yat library, http://dev.thep.lu.se/yat
10#
11# The yat library is free software; you can redistribute it
12# and/or modify it under the terms of the GNU General Public License as
13# published by the Free Software Foundation; either version 3 of the
14# License, or (at your option) any later version.
15#
16# The yat library is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with yat. If not, see <http://www.gnu.org/licenses/>.
23#
24
25have_doxygen="@have_doxygen@"
26
27while test $# -gt 0; do
28    case "$1" in
29    -v)
30    VERBOSE=1
31    ;;
32    esac
33    shift
34done
35
36if test -n "$YAT_TEST_VERBOSE"; then
37  VERBOSE=YAT_TEST_VERBOSE;
38  echo "WARNING: environment variable \`YAT_TEST_VERBOSE' is deprecated;";
39  echo "  use \`VERBOSE' instead.";
40fi
41
42if test -z "$VERBOSE"; then
43  exec > /dev/null 2>&1
44fi
45
46if test $have_doxygen = "no"; then
47    echo Skipped;
48    exit 77;
49fi
50
51echo @ECHO_N@ "doxygen "
52@DOXYGEN@ --version
53(cd @abs_top_builddir@/doc && make doc < /dev/null) || exit 1
54if test ! -e @abs_top_builddir@/doc/doxygen.error; then
55    echo Cannot find file: @abs_top_builddir@/doc/doxygen.error
56    exit 1;
57fi
58if test -s @abs_top_builddir@/doc/doxygen.error; then
59
60    cat @abs_top_builddir@/doc/doxygen.error
61    exit 1;
62fi
63echo Test is OK
64
65exit 0
Note: See TracBrowser for help on using the repository browser.