Ignore:
Timestamp:
Jul 11, 2011, 5:11:27 PM (10 years ago)
Author:
Peter
Message:

new functions in common_defs (taken from svndigest's test suite). using these functions in doxygen_test to simplify syntax.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/common_defs.sh.in

    r2517 r2519  
    2020
    2121
    22 # function copied from GNU Automake 1.10.2
    23 #
    24 # is_newest FILE FILES
    25 # --------------------
    26 # Return false if any file in FILES is newer than FILE.
    27 # Resolve ties in favor of FILE.
    28 is_newest ()
    29 {
    30   test x`find "$@" -newer "$1"` = x
    31 }
    32 
    33 #
     22# bootstrap a test project
    3423#
    3524bootstrap ()
     
    6352}
    6453
     54Exit () { set +x; exit $1; }
     55warn_ () { echo $@ >&2; }
     56exit_fail () { warn_ "$me: failed test: $@"; Exit 1; }
     57exit_fatal () { warn_ "$me: hard error: $@"; Exit 99; }
     58exit_skip () { warn_ "$me: skipped test: $@"; Exit 77; }
     59exit_success () { echo "$me: successsful test: $@"; Exit 0; }
     60
    6561me=$0
    6662
     
    8076      ver_minor=`echo ${version_am} | cut -f 2 -d '.'`
    8177      test ${ver_major} -gt 1 || test ${ver_minor} -ge 10 || exit 77
     78      ;;
     79      doxygen)
     80      test @have_doxygen@ = "yes" || exit_skip no doxygen
    8281      ;;
    8382      libtool)
Note: See TracChangeset for help on using the changeset viewer.