From 11bfd62cc191703bd05ae6561ec3408ad1c9a515 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Nov 14 2018 15:31:00 +0000 Subject: Add selftest suite (untested) --- diff --git a/selftest/findleaks.sh b/selftest/findleaks.sh new file mode 100755 index 0000000..da94593 --- /dev/null +++ b/selftest/findleaks.sh @@ -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 diff --git a/selftest/parallel.sh b/selftest/parallel.sh new file mode 100755 index 0000000..5997a30 --- /dev/null +++ b/selftest/parallel.sh @@ -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