1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/file_main.cc Sun Dec 11 11:19:39 2011 +0100
1.3 @@ -0,0 +1,23 @@
1.4 +#include <benchmark_tools.h>
1.5 +#include <istream>
1.6 +#include <lemon/error.h>
1.7 +
1.8 +using namespace lemon;
1.9 +
1.10 +std::string instance_name;
1.11 +
1.12 +int testMain(std::istream &input);
1.13 +
1.14 +int main(int argc, char **argv)
1.15 +{
1.16 + if(argc!=2) exit(1);
1.17 +
1.18 + std::ifstream input;
1.19 + input.open((DATADIR_PATH+"/"+argv[1]).c_str());
1.20 +
1.21 + instance_name = argv[1];
1.22 +
1.23 + Timer ti;
1.24 + testMain(input);
1.25 + logTime("total",ti);
1.26 +}