File: unit-tests-signing

package info (click to toggle)
debusine 0.14.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,056 kB
  • sloc: python: 193,072; sh: 848; javascript: 335; makefile: 116
file content (18 lines) | stat: -rwxr-xr-x 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

service postgresql start

runuser -u postgres -- createuser --createdb debusine-signing

cp -a pyproject.toml "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"

cat << EOF >> /etc/debusine/signing/test.py

# Use paths from the package (e.g. logs into /var/log/debusine/signing)
from .pkg_paths import *  # noqa
EOF

runuser -u debusine-signing -- pytest --rootdir=/usr/lib/python3/dist-packages -c pyproject.toml --ds=debusine.signing.settings -v --pyargs debusine.signing