File: test.sh

package info (click to toggle)
pyglossary 5.0.9-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,896 kB
  • sloc: python: 46,165; sh: 308; javascript: 100; xml: 42; makefile: 28
file content (20 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -e

rootDir=$(dirname $(dirname "$0"))
rootDirAbs=$(realpath $rootDir)

echo "$rootDir/tests"
cd "$rootDir/tests"
# python -m unittest *_test.py
for F in *_test.py; do
	echo "$F"
	python -m unittest "$F"
done

echo "$rootDirAbs/tests/deprecated/"
cd "$rootDirAbs/tests/deprecated/"
for F in *_test.py; do
	echo "$F"
	python -W ignore::DeprecationWarning -m unittest "$F"
done