File: run-test

package info (click to toggle)
cclib 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 55,300 kB
  • sloc: python: 23,276; makefile: 84; sh: 26
file content (25 lines) | stat: -rw-r--r-- 830 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
#!/bin/bash

set -euxo pipefail

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

echo "Running tests..."
python3 -m pytest -v --capture=no --terse test -k "not (test_method or bridge or io or parser or psi4 or pyscf or pyquante)"
python3 -m pytest -v --capture=no -k test_regression 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