def METHOD_NAME (conf):
    conf.load("waf_unit_test")
    # cppunit is needed to run the tests but we set mandatory=False because the
    # tests are not mandatory. First we try with pkg-config
    try:
        conf.check_cfg (package="cppunit", args="--cflags --libs",
                                        uselib_store="CPPUNIT")
    except Errors.WafError:
        conf.check_cxx (header_name="cppunit/Test.h", uselib_store="CPPUNIT",
                                        mandatory=False)
        conf.check_cxx (lib="cppunit", uselib_store="CPPUNIT", mandatory=False)
    # Set env variable containing the list of all test source files (by looking
    # recursively for all files ending with '.cpp')
    test_src = conf.path.ant_glob ("**/*.cpp")
    test_src =[ f.path_from (conf.path) for f in test_src ]
    conf.env.append_unique ("TEST_SRC", test_src)
    # Add current directory to list of INCLUDES for TESTS
    conf.env.append_unique ("INCLUDES_TESTS", conf.path.abspath ())