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@…>, 8 years ago

Refactoring and test instance in test logs

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