From 114f438a7cb197f95ed1d298eb6a17c87c9c470f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 4 Nov 2015 08:52:48 +0000 Subject: [PATCH] the new tag AX_BUILD_TEST allows to use tests without the need of AX_USE_CPPUNIT, so only AX_BUILD_TEST can be used for testing scripts. AX_USE_CPPUNIT calls AX_BUILD_TEST, so you don't need to specify both --- README | 2 +- bootstrap.sh | 37 +++++++++++++++++++---------- scripts/ax_init_standard_project.m4 | 21 +++++++++------- scripts/bootstrap.sh | 34 +++++++++++++++++--------- 4 files changed, 61 insertions(+), 33 deletions(-) diff --git a/README b/README index e1790db..1188ece 100644 --- a/README +++ b/README @@ -5,7 +5,7 @@ Simply setup a new project: 2. checkout trunk of the new subversion repository 3. cd into the new project subversion working copy 4. call with full path: /path/to/bootstrap.sh - 5. follow the einstructions, i.e. edit configure.ac + 5. follow the instructions, i.e. edit configure.ac 6. run again: /path/to/bootstrap.sh 7. add some generated files: svn add COPYING ChangeLog INSTALL 8. your project is setup and compilable, test: ./bootstrap.sh -b diff --git a/bootstrap.sh b/bootstrap.sh index 67357ae..cbe9a51 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -119,7 +119,7 @@ GENERATED FILES * scripts/makefile.in - if you enabled AX_USE_SCRIPTS * doc/makefile.am - if you enabled AX_USE_DOXYGEN * doc/doxyfile.in - if you enabled AX_USE_DOXYGEN - * test/makefile.am - if you enabled AX_USE_CPPUNIT + * test/makefile.am - if you enabled AX_BUILD_TEST * examples/makefile.am - if you enabled AX_BUILD_EXAMPLES * debian/changelog.in - if you enabled AX_USE_DEBIAN_PACKAGING * debian/control.in - if you enabled AX_USE_DEBIAN_PACKAGING @@ -170,14 +170,14 @@ FILE DEPENDENCIES * test/makefile.am depends on AX_USE_LIBTOOL * html/makefile.am depends on AX_BUILD_HTML * doc/doxyfile.in depends on AX_BUILD_EXAMPLES - * debian/control.in depends on AX_USE_DOXYGEN, AX_USE_CPPUNIT, + * debian/control.in depends on AX_USE_DOXYGEN, AX_BUILD_TEST, AX_CXX_QT, AX_CHECK_QT, AX_REQUIRE_QT, AX_USE_LIBTOOL * debian/${DEFAULT_PROJECT_NAME}.install depends on AX_USE_LIBTOOL * debian/${DEFAULT_PROJECT_NAME}.dirs depends on AX_USE_LIBTOOL * debian/${DEFAULT_PROJECT_NAME}-dev.install depends on AX_USE_LIBTOOL * debian/${DEFAULT_PROJECT_NAME}-dev.dirs depends on AX_USE_LIBTOOL * ${DEFAULT_PROJECT_NAME}.spec.in depends on AX_USE_RPM_PACKAGING, - AX_USE_LIBTOOL, AX_CHECK_QT, AX_REQUIRE_QT, AX_CXX_QT, AX_USE_CPPUNIT + AX_USE_LIBTOOL, AX_CHECK_QT, AX_REQUIRE_QT, AX_CXX_QT, AX_BUILD_TEST FILES @@ -206,7 +206,8 @@ FILES * Enable Doxygen documentation generation: AX_USE_DOXYGEN * Enable Debian packaging by calling "make deb": AX_USE_DEBIAN_PACKAGING * Enable RPM packaging by calling "make rpm": AX_USE_RPM_PACKAGING - * Enable C++ testing using CppUnit: AX_USE_CPPUNIT + * Enable C++ testing using CppUnit: AX_BUILD_TEST plus AX_USE_CXX + * Enable other tests: AX_BUILD_TEST * Enable C++ examples, i.e. for libraries: AX_BUILD_EXAMPLES * Check for C++11 support: AX_CXX_COMPILE_STDCXX_11 (see ax_cxx_compile_stdcxx_11.m4) * Require a QT module: AX_REQUIRE_QT (see ax_check_qt.m4) @@ -438,7 +439,7 @@ AX_INIT_STANDARD_PROJECT #AX_USE_DOXYGEN #AX_USE_DEBIAN_PACKAGING #AX_USE_RPM_PACKAGING -#AX_USE_CPPUNIT +#AX_BUILD_TEST #AX_BUILD_EXAMPLES #AX_BUILD_HTML @@ -458,8 +459,8 @@ IFS="$SAVEIFS" PackageName=${PackageName[*]^} PackageName=${PackageName// /} -if ! testtag "AX_CHECK_QT" configure.ac && \ - ! testtag "AX_REQUIRE_QT" configure.ac; then +if ! testtag AX_CHECK_QT && \ + ! testtag AX_REQUIRE_QT; then echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | \ to --condition AX_USE_CXX src/makefile.am elif ! test -e src/makefile.am; then @@ -695,10 +696,20 @@ namespace NAMESPACE { EOF echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | to --condition AX_USE_SCRIPTS scripts/makefile.am echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | to --condition AX_USE_DOXYGEN doc/makefile.am -to --condition AX_USE_CPPUNIT test/makefile.am <> test/makefile.in <