| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
set -euxo pipefail |
| 4 |
|
| 5 |
CCLIB_VERSION=`dpkg-query --showformat='${Version}' --show cclib | sed "s/-.*//; s/~//"` |
| 6 |
CCLIB_TAG=v${CCLIB_VERSION} |
| 7 |
|
| 8 |
echo "Downloading repository of regression files..." |
| 9 |
mkdir -p data |
| 10 |
pushd data |
| 11 |
git -c http.sslVerify=false clone -n --filter=tree:0 https://github.com/cclib/cclib.git |
| 12 |
pushd cclib |
| 13 |
git sparse-checkout set --no-cone data |
| 14 |
git -c http.sslVerify=false checkout ${CCLIB_TAG} || git -c http.sslVerify=false checkout |
| 15 |
mv data/* .. |
| 16 |
popd |
| 17 |
git -c http.sslVerify=false clone --filter=tree:0 https://github.com/cclib/cclib-data.git regression |
| 18 |
pushd regression |
| 19 |
git -c http.sslVerify=false checkout ${CCLIB_TAG} || git -c http.sslVerify=false checkout |
| 20 |
popd |
| 21 |
popd |
| 22 |
|
| 23 |
echo "Running tests..." |
| 24 |
python3 -m pytest -v --capture=no test -k "not (test_method or bridge or io or parser or psi4 or pyscf or pyquante)" |
| 25 |
python3 -m pytest -v --capture=no test/regression.py |
| 26 |
python3 -m pytest -v -s test/regression_io.py |
| 27 |
|
| 28 |
python3 -m test.test_utils |
| 29 |
python3 -m test.test_data --terse |
| 30 |
python3 -m test.regression --traceback |
| 31 |
python3 -m test.regression_io |