File: run-test

package info (click to toggle)
dmrgpp 6.06-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 113,900 kB
  • sloc: cpp: 80,986; perl: 14,772; ansic: 2,923; makefile: 83; sh: 17
file content (24 lines) | stat: -rwxr-xr-x 660 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
#!/bin/sh -e

# prepare before test

cp -rf scripts TestSuite oraclesdmrg "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
mkdir -p src
cp -f /usr/bin/dmrg $(find /usr/lib -name observe -type f) src

# Limit the number of threads in OpenMP
OMP_NUM_THREADS=$(test $(nproc) -gt 4 && echo 4 || echo $(nproc))
export OMP_NUM_THREADS
echo "Limiting the number of OpenMP thread via OMP_NUM_THREADS=$OMP_NUM_THREADS"

# run test

cd "$AUTOPKGTEST_TMP"/TestSuite
rm -Rf tests/
cp -f batchDollarized.pbs.sample batchDollarized.pbs
./ci.pl -n "$1-$2" -S bash

# compare test results with oracles reference

./postCi.pl -g "$AUTOPKGTEST_TMP"/oraclesdmrg/oracles/tests -n '$1-$2'