Add selftest suite (untested)

This commit is contained in:
Miro Hrončok 2018-10-18 17:23:46 +02:00
commit 11bfd62cc1
2 changed files with 25 additions and 0 deletions

11
selftest/findleaks.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh -eux
# set python version
VERSION=${VERSION:-3.7}
PYTHON=${PYTHON:-python${VERSION}dm}
# what to skip
# test_socket swaps and kills the machine https://bugs.python.org/issue34587
X=${X:-"-x test_socket"}
$PYTHON -m test --findleaks $X

14
selftest/parallel.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh -eux
# set python version
VERSION=${VERSION:-3.7}
PYTHON=${PYTHON:-python$VERSION}
# what to skip
# test_socket swaps and kills the machine https://bugs.python.org/issue34587
X=${X:-"-x test_socket"}
# parallel jobs, 0 lets Python decide what's best
JOBS=${JOBS:-0}
$PYTHON -m test -j$JOBS $X