From 0dc4eda500e803a65a10445719c97d7e523897da Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Wed, 3 Jun 2015 22:08:23 +0200 Subject: Fixes for running tests and generating docs with cmake --- configure.bin | 118 ------------------------------------------------- doc/CMakeLists.txt | 2 +- doc/Doxyfile | 1 + testing/CMakeLists.txt | 2 +- testing/runtests.py | 2 +- 5 files changed, 4 insertions(+), 121 deletions(-) delete mode 100755 configure.bin diff --git a/configure.bin b/configure.bin deleted file mode 100755 index dbc21c6..0000000 --- a/configure.bin +++ /dev/null @@ -1,118 +0,0 @@ -#! /bin/sh -# -# $Id: configure,v 1.1 1999/07/19 17:00:15 root Exp $ -# -# Copyright (C) 1997-2014 by Dimitri van Heesch. -# -# Permission to use, copy, modify, and distribute this software and its -# documentation under the terms of the GNU General Public License is hereby -# granted. No representations are made about the suitability of this software -# for any purpose. It is provided "as is" without express or implied warranty. -# See the GNU General Public License for more details. -# -# Documents produced by Doxygen are derivative works derived from the -# input used in their production; they are not affected by this license. -# -# shell script to configure doxygen (use for binary releases) - -f_prefix=/usr/local -f_insttool=NO - -while test -n "$1"; do - case $1 in - --prefix) - shift; f_prefix=$1 - ;; - --install) - shift; f_insttool=$1 - ;; - -h | -help | --help) - f_help=y - ;; - *) - echo $1: unknown argument - f_help=y - f_error=y - ;; - esac - shift -done - -if test "$f_help" = y; then - cat </dev/null | grep utils`"; then - install_found=YES - install_prog="$j/$i" - break 2 - fi - fi - done - done - f_insttool="$install_prog" -fi - -if test "$f_insttool" = NO; then - if test "$install_found" = YES; then - echo "GNU version of install is required!" - else - echo "not found!"; - fi - echo - exit 2 -fi -echo "using $f_insttool"; - -# ---------------------------------------------------------- - - -cat > .makeconfig < $DST <> $DST - echo " Created $DST from $SRC..." -done diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 158f8e5..1081fa4 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -26,7 +26,7 @@ add_custom_target(docs COMMAND ${SED} -e "s/\$VERSION/${VERSION}/g" doxygen_manual.tex > ../latex/doxygen_manual.tex COMMAND ${SED} -e "s/\$VERSION/${VERSION}/g" doxygen.sty > ../latex/doxygen.sty COMMAND ${EPSTOPDF} doxygen_logo.eps --outfile=../latex/doxygen_logo.pdf - COMMAND ${MAKE} -C ../latex + COMMAND ${MAKE} -C ../latex > latex_out.txt DEPENDS doxygen ${PROJECT_BINARY_DIR}/doc/language.doc config.doc "${PROJECT_BINARY_DIR}/man/doxygen.1" "${PROJECT_BINARY_DIR}/man/doxywizard.1" diff --git a/doc/Doxyfile b/doc/Doxyfile index c57bbe9..ab97227 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile @@ -53,3 +53,4 @@ STRIP_CODE_COMMENTS = NO HTML_STYLESHEET = doxygen_manual.css ALIASES = LaTeX="\f$\mbox{\LaTeX}\f$" ALIASES += TeX="\f$\mbox{\TeX}\f$" +LATEX_BATCHMODE = YES diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt index af3ddf3..21df5ab 100644 --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt @@ -3,7 +3,7 @@ find_program(DIFF NAMES diff) add_custom_target(tests COMMENT "Running doxygen tests..." - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py --all --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/testing/runtests.py --all --doxygen ${PROJECT_BINARY_DIR}/bin/doxygen --inputdir ${CMAKE_SOURCE_DIR}/testing --outputdir ${PROJECT_BINARY_DIR}/testing DEPENDS doxygen ) diff --git a/testing/runtests.py b/testing/runtests.py index d0e18dc..64305cc 100644 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -26,7 +26,7 @@ class Tester: return (True,'%s absent' % expected_file) else: diff = os.popen('diff -u %s %s' % (got_file,expected_file)).read() - if diff: + if diff and not diff.isspace(): return (True,'Difference between generated output and reference:\n%s' % diff) return (False,'') -- cgit v0.12