Commit 7ce84ecd authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: basic tests for M1 support

parent a806e61d
......@@ -42,6 +42,7 @@ def test_get_platform_shorcut_if_not_applicable():
# skip platform
(({}, 'pkg', 'build-noarch-conda-package', ['noarch']), False),
(({}, 'pkg', 'build-macos-64-conda-package', ['macos-64']), False),
(({}, 'pkg', 'build-macos-M1-conda-package', ['macos-M1']), False),
(({}, 'pkg', 'build-linux-64-conda-package', ['linux-64']), False),
(({}, 'pkg', 'build-linux-64-cuda-9.2-conda-package',
['linux-64-cuda-9.2']), False),
......@@ -68,6 +69,8 @@ def test_get_platform_shorcut_if_not_applicable():
'linux-64'),
((binary_meta, 'pkg', 'build-macos-64-conda-package', []),
'macos-64'),
((binary_meta, 'pkg', 'build-macos-M1-conda-package', []),
'macos-M1'),
((cuda_meta, 'pkg', 'build-linux-64-cuda-9.2-conda-package', []),
'linux-64-cuda-9.2'),
......@@ -100,12 +103,14 @@ def test_get_skip_platform():
tests = [
(noarch_meta, ('linux-64 '
'macos-64 '
'macos-M1 '
'linux-64-cuda')),
(binary_meta, ('noarch '
'linux-64-cuda')),
(cuda_meta, ('noarch '
'linux-64 '
'macos-64'))
'macos-64 '
'macos-M1'))
]
for input, expected in tests:
......@@ -121,7 +126,7 @@ def test_get_platform_ids():
# (input, expected)
tests = [
(noarch_meta, ['noarch']),
(binary_meta, ['linux-64', 'macos-64']),
(binary_meta, ['linux-64', 'macos-64', 'macos-M1']),
(cuda_meta, ['linux-64-cuda-9.2',
'linux-64-cuda-10.2',
'linux-64-cuda-11.0',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment