Rework custom test machinery to give the individual tests more control

on how they're run, and combine environment.json and check.py
This commit is contained in:
Joe Rickerby
2019-04-22 18:22:43 +01:00
parent ac4b62ca07
commit 21fb27faf7
24 changed files with 237 additions and 114 deletions
-9
View File
@@ -1,9 +0,0 @@
import glob
import subprocess
import sys
build_identifiers = subprocess.check_output([sys.executable, '-m', 'cibuildwheel', '--print-build-identifiers'], universal_newlines=True).strip().split('\n')
expected_identifiers = build_identifiers
built_wheels = glob.glob('wheelhouse/*.whl')
assert len(built_wheels) == len(expected_identifiers)
+17
View File
@@ -0,0 +1,17 @@
import subprocess, sys, os
from glob import glob
project_dir = os.path.dirname(__file__)
sys.path.append(os.path.join(os.path.dirname(project_dir), 'shared'))
import utils
def test():
# this test checks that SSL is working in the build environment using
# some checks in setup.py.
# build the wheels
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir])
# check that we got the right number of built wheels
expected_identifiers = utils.cibuildwheel_get_build_identifiers(project_dir)
built_wheels = glob('wheelhouse/*.whl')
assert len(built_wheels) == len(expected_identifiers)