Navigation


Changeset 341:2bf23d10bc6f in freeDiameter


Ignore:
Timestamp:
Jun 29, 2010, 11:37:44 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Change the test system to use ctest more efficiently

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r339 r341  
    1717SET(FD_PROJECT_VERSION_API 1)
    1818
    19 # Some subfolders may have tests
    20 ENABLE_TESTING()
    21 # And actually we are now using CTest advanced features such as CDash, so we need this:
     19# The test framework, using CTest and CDash.
    2220INCLUDE(CTest)
    2321
  • INSTALL

    r325 r341  
    1818# make
    1919
    20 You can enable the unit tests by doing:
    21 # cmake -DSKIP_TESTS:BOOL=OFF ../
     20You can disable the unit tests by doing:
     21# cmake -DBUILD_TESTING:BOOL=OFF ../
    2222# make
    2323# make tests
  • contrib/debian/rules

    r328 r341  
    1717export DH_OPTIONS
    1818
    19 # Uncomment this to run the tests when the package is built
    20 # compile_the_tests=-DSKIP_TESTS:BOOL=OFF
     19# Comment this out if you want to include the tests when the package is built
     20skip_the_tests=-DBUILD_TESTING:BOOL=OFF
    2121
    2222%:
     
    2424
    2525override_dh_auto_configure:
    26         dh_auto_configure -- $(compile_the_tests) \
     26        dh_auto_configure -- $(skip_the_tests) \
    2727                -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
    2828                -DDEFAULT_CONF_PATH:PATH=/etc/freeDiameter \
  • freeDiameter/CMakeLists.txt

    r320 r341  
    7676
    7777# The unary tests directory
    78 OPTION(SKIP_TESTS "Skip compilation of the tests?" ON)
    79 IF ( NOT SKIP_TESTS )
     78IF ( BUILD_TESTING )
    8079        SUBDIRS(tests)
    81 ENDIF ( NOT SKIP_TESTS )
     80ENDIF ( BUILD_TESTING )
    8281
    8382####
Note: See TracChangeset for help on using the changeset viewer.