#!/bin/sh

set -e

# This runs cctbx's own tests.
# Beware: this can take some time.
# Not all test data files are included in the distribution,
# but the tests should quit cleanly.

# The setpaths is included in ccp4.setup
#. $CCP4/lib/cctbx/cctbx_build/setpaths.sh
# or
#. $CCP4/src/phaser/phaser-1.3.2/build/intel-linux/setpaths.sh

libtbx.python $CCP4/lib/cctbx/cctbx_sources/libtbx/run_tests.py $*

libtbx.python $CCP4/lib/cctbx/cctbx_sources/boost_adaptbx/run_tests.py $*

libtbx.python $CCP4/lib/cctbx/cctbx_sources/scitbx/run_tests.py $*

libtbx.python $CCP4/lib/cctbx/cctbx_sources/cctbx/run_tests.py $*

libtbx.python $CCP4/lib/cctbx/cctbx_sources/iotbx/run_tests.py $*

libtbx.python $CCP4/lib/cctbx/cctbx_sources/mmtbx/run_tests.py $*
