COIN-OR::LEMON - Graph Library

Changeset 11:cf6519daa7fa in lemon-benchmark for tests/file_main.cc


Ignore:
Timestamp:
12/11/11 11:19:39 (13 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Refactoring and test instance in test logs

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tests/file_main.cc

    r10 r11  
    11#include <benchmark_tools.h>
     2#include <istream>
     3#include <lemon/error.h>
    24
    35using namespace lemon;
    46
    5 int testMain(int argc, char **argv);
     7std::string instance_name;
     8
     9int testMain(std::istream &input);
    610
    711int main(int argc, char **argv)
    812{
     13  if(argc!=2) exit(1);
     14
     15  std::ifstream input;
     16  input.open((DATADIR_PATH+"/"+argv[1]).c_str());
     17 
     18  instance_name = argv[1];
     19
    920  Timer ti;
    10   testMain(argc, argv);
     21  testMain(input);
    1122  logTime("total",ti);
    1223}
Note: See TracChangeset for help on using the changeset viewer.