Add selftest suite (untested)
This commit is contained in:
parent
8ddab88d43
commit
11bfd62cc1
2 changed files with 25 additions and 0 deletions
11
selftest/findleaks.sh
Executable file
11
selftest/findleaks.sh
Executable 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
14
selftest/parallel.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue