Debian Codegraph @

debian/tests/test-qutip

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 # limit thread parallelisation to no more than 4 cpus
5 # but respect any existing value of QUTIP_NUM_PROCESSES
6 ncpu=${QUTIP_NUM_PROCESSES}
7 if [ "x${ncpu}" = "x" ]; then
8 ncpu=$(nproc)
9 ncpu=$(( ncpu > 4 ? 4 : ncpu ))
10 fi
11 export QUTIP_NUM_PROCESSES=${ncpu}
12
13 cp -r qutip/tests "$AUTOPKGTEST_TMP"
14 cd "$AUTOPKGTEST_TMP"
15
16 # if we need to report issues upstream, they will want to know the environment
17 echo "Your Environment: qutip.about()"
18 python3 -c "import qutip; qutip.about()"
19 echo "==============================="
20
21 for py in $(py3versions -s 2>/dev/null); do
22 echo "Testing with $py:"
23 $py -mpytest tests -k "not (test_simdiag or mpi_pmap)"
24 done