tests/file_main.cc
author Alpar Juttner <alpar@cs.elte.hu>
Sun, 11 Dec 2011 11:19:39 +0100
changeset 11 cf6519daa7fa
parent 10 tests/main.cc@d7ce0311ece2
child 12 4eab99ff2666
permissions -rw-r--r--
Refactoring and test instance in test logs
     1 #include <benchmark_tools.h>
     2 #include <istream>
     3 #include <lemon/error.h>
     4 
     5 using namespace lemon;
     6 
     7 std::string instance_name;
     8 
     9 int testMain(std::istream &input);
    10 
    11 int 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 }