COIN-OR::LEMON - Graph Library

Changeset 13:0ab493e5250e in lemon-benchmark


Ignore:
Timestamp:
12/11/11 18:43:33 (6 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Tags:
tip
Message:

Add build id field to running time logs

Configurable by BENCHMARK_BUILD_ID cmake variable,
which defaults to the last component of the build directory.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r9 r13  
    1212SET(PROJECT_VERSION "hg-tip" 
    1313    CACHE STRING "${PROJECT_NAME} version string") 
     14 
     15GET_FILENAME_COMPONENT(BUILD_DIR_NAME ${CMAKE_BINARY_DIR} NAME) 
     16 
     17SET(BENCHMARK_BUILD_ID ${BUILD_DIR_NAME} CACHE STRING "Benchmark build id") 
    1418 
    1519## Do not edit this. 
  • tests/benchmark_tools.h

    r12 r13  
    2929 
    3030extern const std::string DATADIR_PATH; 
    31  
     31extern const std::string BENCHMARK_BUILD_ID; 
    3232 
    3333inline void logTime(const std::string &_instance_name, 
     
    3535                    const lemon::TimeStamp &time) 
    3636{ 
    37   std::cout << "*** " << test_name 
     37  std::cout << "*** " << BENCHMARK_BUILD_ID  
     38            << ' ' << test_name 
    3839            << ' ' << _instance_name 
    3940            << ' ' << subtest_name 
  • tests/paths.cc.cmake

    r11 r13  
    33 
    44const std::string DATADIR_PATH = "@DATADIR_PATH@"; 
     5const std::string BENCHMARK_BUILD_ID = "@BENCHMARK_BUILD_ID@"; 
Note: See TracChangeset for help on using the changeset viewer.