1#define CATCH_CONFIG_RUNNER
2#include "catch.hpp"
3
4#include "duckdb/common/file_system.hpp"
5#include "test_helpers.hpp"
6
7using namespace duckdb;
8
9int main(int argc, char *argv[]) {
10 // delete the testing directory if it exists
11 auto dir = TestCreatePath("");
12 try {
13 TestDeleteDirectory(dir);
14 // create the empty testing directory
15 TestCreateDirectory(dir);
16 } catch (Exception &ex) {
17 fprintf(stderr, "Failed to create testing directory \"%s\": %s", dir.c_str(), ex.what());
18 return 1;
19 }
20
21 int result = Catch::Session().run(argc, argv);
22
23 TestDeleteDirectory(dir);
24
25 return result;
26}
27