COIN-OR::LEMON - Graph Library

source: lemon-benchmark/tests/file_main.cc @ 11:cf6519daa7fa

Last change on this file since 11:cf6519daa7fa was 11:cf6519daa7fa, checked in by Alpar Juttner <alpar@…>, 12 years ago

Refactoring and test instance in test logs

File size: 380 bytes
RevLine 
[10]1#include <benchmark_tools.h>
[11]2#include <istream>
3#include <lemon/error.h>
[10]4
5using namespace lemon;
6
[11]7std::string instance_name;
8
9int testMain(std::istream &input);
[10]10
11int main(int argc, char **argv)
12{
[11]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
[10]20  Timer ti;
[11]21  testMain(input);
[10]22  logTime("total",ti);
23}
Note: See TracBrowser for help on using the repository browser.