# xia2 tests - these may require the xia2_regression or dials_regression # repositories to be available... from __future__ import division from libtbx import test_utils import libtbx.load_env import os import sys # Needed to make xia2 imports work correctly import libtbx.load_env xia2_root_dir = libtbx.env.find_in_repositories("xia2", optional=False) if xia2_root_dir is None: from sys import exit exit("xia2 not in cctbx repositories") sys.path.insert(0, xia2_root_dir) os.environ['XIA2_ROOT'] = xia2_root_dir os.environ['XIA2CORE_ROOT'] = os.path.join(xia2_root_dir, "core") tst_list = ( "$D/Test/Schema/TstXProject.py", "$D/Test/Handlers/TstXinfo.py", ["$D/Test/Wrappers/Dials/TstDialsWrappers.py", "1"], #["$D/Test/Modules/Refiner/TstDialsRefiner.py", "1"], ["$D/Test/Modules/Integrater/TstMosflmIntegrater.py", "1"], # serial ["$D/Test/Modules/Integrater/TstMosflmIntegrater.py", "2"], # parallel ["$D/Test/Modules/Integrater/TstDialsIntegrater.py", "1"], ["$D/Test/Modules/Integrater/TstXDSIntegrater.py", "1"], ["$D/Test/Modules/Indexer/TstMosflmIndexer.py", "1"], ["$D/Test/Modules/Indexer/TstDialsIndexer.py", "1"], "$D/Test/Modules/Indexer/TstLabelitIndexer.py", "$D/Test/Modules/Indexer/TstLabelitIndexerII.py", ["$D/Test/Modules/Indexer/TstXDSIndexer.py", "1"], ["$D/Test/Modules/Indexer/TstXDSIndexerII.py", "1"], ["$D/Test/Modules/Scaler/TstCCP4ScalerA.py", "1"], ["$D/Test/Modules/Scaler/TstXDSScalerA.py", "1"], "$D/Test/Wrappers/CCP4/TstBlend.py", "$D/Test/Wrappers/Labelit/TstLabelitIndex.py", "$D/Test/Wrappers/Mosflm/TstMosflmIndex.py", "$D/Test/Wrappers/Mosflm/TstMosflmRefineCell.py", "$D/Test/Mosflm/MosflmRefactorTest.py", "$D/Test/System/TstRunXia2.py", "$D/Test/Modules/TstPychef.py", ) def run () : build_dir = libtbx.env.under_build("xia2") dist_dir = libtbx.env.dist_path("xia2") test_utils.run_tests(build_dir, dist_dir, tst_list) if (__name__ == "__main__"): run()