File: run-test

package info (click to toggle)
cclib 1.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,412 kB
  • sloc: python: 23,605; makefile: 75; sh: 31
file content (31 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

set -euxo pipefail

CCLIB_VERSION=`dpkg-query --showformat='${Version}' --show cclib | sed "s/-.*//; s/~//"`
CCLIB_TAG=v${CCLIB_VERSION}

echo "Downloading repository of regression files..."
mkdir -p data
pushd data
git -c http.sslVerify=false clone -n --filter=tree:0 https://github.com/cclib/cclib.git
pushd cclib
git sparse-checkout set --no-cone data
git -c http.sslVerify=false checkout ${CCLIB_TAG} || git -c http.sslVerify=false checkout
mv data/* ..
popd
git -c http.sslVerify=false clone --filter=tree:0 https://github.com/cclib/cclib-data.git regression
pushd regression
git -c http.sslVerify=false checkout ${CCLIB_TAG} || git -c http.sslVerify=false checkout
popd
popd

echo "Running tests..."
python3 -m pytest -v --capture=no test -k "not (test_method or bridge or io or parser or psi4 or pyscf or pyquante)"
python3 -m pytest -v --capture=no test/regression.py
python3 -m pytest -v -s test/regression_io.py

python3 -m test.test_utils
python3 -m test.test_data --terse
python3 -m test.regression --traceback
python3 -m test.regression_io