#4 Add selftest suite (untested)
Merged 5 years ago by churchyard. Opened 5 years ago by churchyard.
tests/ churchyard/python selftest  into  master

@@ -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

file added
+14
@@ -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

Would like to wait for 3.7.1 before we proceed.

cc @psss @pviktori

The scripts look reasonable, but AFAIK there's no good way to verify if the tests will actually run/pass.
So... merge at will?

rebased onto 11bfd62

5 years ago

Pull-Request has been merged by churchyard

5 years ago