diff --git a/modules/io/tests/test_mmcif_reader.cc b/modules/io/tests/test_mmcif_reader.cc index e5c415f6df503c1866d9a43caf0709d5a2a248b9..37cedb333b8eef0f1c20e836193285903b0e7722 100644 --- a/modules/io/tests/test_mmcif_reader.cc +++ b/modules/io/tests/test_mmcif_reader.cc @@ -399,6 +399,14 @@ BOOST_AUTO_TEST_CASE(mmcif_entity_tests) BOOST_AUTO_TEST_CASE(mmcif_entity_poly_tests) { + SetPrefixPath(getenv("OST_ROOT")); + String lib_path=GetSharedDataPath()+"/compounds.chemlib"; + conop::CompoundLibPtr compound_lib=conop::CompoundLib::Load(lib_path); + if (!compound_lib) { + std::cout << "WARNING: skipping SEQRES import unit test. " + << "Rule-based builder is required" << std::endl; + return; + } conop::Conopology::Instance().SetDefaultBuilder("RBB"); BOOST_MESSAGE(" Running mmcif_entity_poly_tests..."); mol::ChainHandle ch;