osrm-backend/test/data-tests/testdata-testcases.cpp
Patrick Niklaus 8511256779 Squashed 'third_party/libosmium/' content from commit 2282c84
git-subtree-dir: third_party/libosmium
git-subtree-split: 2282c8450bae55839372a2002db7ca754530d2fc
2016-03-01 17:56:55 +01:00

26 lines
567 B
C++

#include <iostream>
#include <string>
#define CATCH_CONFIG_RUNNER
#include "testdata-testcases.hpp"
std::string dirname;
int main(int argc, char* argv[]) {
const char* testcases_dir = getenv("TESTCASES_DIR");
if (testcases_dir) {
dirname = testcases_dir;
std::cerr << "Running tests from '" << dirname << "' (from TESTCASES_DIR environment variable)\n";
} else {
std::cerr << "Please set TESTCASES_DIR environment variable.\n";
exit(1);
}
int result = Catch::Session().run(argc, argv);
return result;
}