/** * Copyright (C) 2007 by Dominik Seichter * Copyright (C) 2021 by Francesco Pretto * * Licensed under GNU Library General Public 2.0 or later. * Some rights reserved. See COPYING, AUTHORS. */ #define CATCH_CONFIG_RUNNER #include #include using namespace std; using namespace PoDoFo; int main(int argc, char* argv[]) { // Add a fonts directory for more consistents run auto fontPath = TestUtils::GetTestInputPath() / "Fonts"; if (!fs::exists(fontPath)) { throw runtime_error("Missing Fonts directory. Ensure you have correctly " "fetched \"extern/resources\" git submodule"); } PdfCommon::AddFontDirectory(fontPath.u8string()); PdfCommon::SetMaxLoggingSeverity(PdfLogSeverity::Warning); return Catch::Session().run(argc, argv); }