Commit 906f6ac1 by Maarten L. Hekkelman

Fix all tests to work with embedded data, no CCD

parent 8d96e513
This diff is collapsed. Click to expand it.
......@@ -60,8 +60,10 @@ BOOST_AUTO_TEST_CASE(init)
gTestDir = boost::unit_test::framework::master_test_suite().argv[1];
// initialize CCD location
if (std::filesystem::exists(gTestDir / ".."/"data"/"components.cif"))
cif::addFileResource("components.cif", gTestDir / ".."/"data"/"components.cif");
if (std::filesystem::exists(gTestDir / ".." / "data" / "ccd-subset.cif"))
cif::addFileResource("components.cif", gTestDir / ".." / "data" / "ccd-subset.cif");
mmcif::CompoundFactory::instance().pushDictionary(gTestDir / "HEM.cif");
}
// --------------------------------------------------------------------
......
......@@ -56,9 +56,12 @@ cif::File operator""_cf(const char* text, size_t length)
BOOST_AUTO_TEST_CASE(init)
{
// not a test, just initialize test dir
if (boost::unit_test::framework::master_test_suite().argc == 2)
gTestDir = boost::unit_test::framework::master_test_suite().argv[1];
// initialize CCD location
if (std::filesystem::exists(gTestDir / ".." / "data" / "ccd-subset.cif"))
cif::addFileResource("components.cif", gTestDir / ".." / "data" / "ccd-subset.cif");
}
// --------------------------------------------------------------------
......
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