Commit e1826044 by Maarten L. Hekkelman

Fix all tests to work with embedded data, no CCD, part 4

parent 45a7defb
...@@ -1243,6 +1243,9 @@ void addDataDirectory(std::filesystem::path dataDir) ...@@ -1243,6 +1243,9 @@ void addDataDirectory(std::filesystem::path dataDir)
void addFileResource(const std::string &name, std::filesystem::path dataFile) void addFileResource(const std::string &name, std::filesystem::path dataFile)
{ {
if (not fs::exists(dataFile))
throw std::runtime_error("Attempt to add a file resource for " + name + " that does not exist: " + dataFile.string());
gLocalResources[name] = dataFile; gLocalResources[name] = dataFile;
} }
......
...@@ -1532,8 +1532,6 @@ BOOST_AUTO_TEST_CASE(bondmap_1) ...@@ -1532,8 +1532,6 @@ BOOST_AUTO_TEST_CASE(bondmap_1)
{ {
cif::VERBOSE = 2; cif::VERBOSE = 2;
cif::addFileResource("components.cif", gTestDir / ".." / "data" / "components.cif");
// sections taken from CCD compounds.cif // sections taken from CCD compounds.cif
auto components = R"( auto components = R"(
data_ASN data_ASN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment