File: unittests

package info (click to toggle)
beets 1.4.7-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,340 kB
  • sloc: python: 35,441; xml: 334; sh: 235; makefile: 117
file content (20 lines) | stat: -rwxr-xr-x 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -efu

export HOME="$AUTOPKGTEST_TMP"
export LC_ALL=C.UTF-8
export PYTHONPATH=/usr/share/beets

pythons="$(py3versions -s)"

cp -a test $AUTOPKGTEST_TMP
cd "$AUTOPKGTEST_TMP"

# The tests assume beetsplug is found above them, and do unspeakable evil with
# __path__ to ensure that their local beetsplug is used.
ln -s /usr/share/beets/beetsplug .

for python in $pythons; do
	echo "=== $python ==="
	$python -m unittest discover -p 'test_*' 2>&1
done