EESSI / gentoo-overlay

Gentoo overlay for the EESSI compatibility layer
https://github.com/EESSI/compatibility-layer
GNU General Public License v2.0
4 stars 9 forks source link

Improvements for archspec ebuild #66

Closed bedroge closed 2 years ago

bedroge commented 2 years ago

As the pypi tarball doesn't include the tests, I've changed to the release tarball from GitHub. That required some additional changes, as that one doesn't contain the required archspec-json stuff. So, it's now downloading it separately, and extracts it into the right folder.

These changes now allow emerge to run the tests (if enabled, see https://github.com/EESSI/compatibility-layer/issues/136):

>>> Test phase: sys-apps/archspec-0.1.3
 * python3_9: running distutils-r1_run_phase python_test
python3.9 -m pytest -vv -ra -l -Wdefault
============================================================================== test session starts ==============================================================================
platform linux -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /cvmfs/pilot.eessi-hpc.org/2021.12/compat/linux/x86_64/usr/bin/python3.9
cachedir: .pytest_cache
rootdir: /cvmfs/pilot.eessi-hpc.org/2021.12/compat/linux/x86_64/var/tmp/portage/sys-apps/archspec-0.1.3/work/archspec-0.1.3
plugins: forked-1.3.0
collecting ... collected 320 items

tests/test_archspec.py::test_version PASSED                                                                                                                               [  0%]
tests/test_cli.py::test_command_run_without_failure[cli_args0] PASSED                                                                                                     [  0%]
tests/test_cli.py::test_command_run_without_failure[cli_args1] PASSED                                                                                                     [  0%]
tests/test_cli.py::test_command_run_without_failure[cli_args2] PASSED                                                                                                     [  1%]
tests/test_cli.py::test_cli_version PASSED                                                                                                                                [  1%]
tests/test_cpu.py::test_target_detection[linux-ubuntu18.04-broadwell] PASSED                                                                                              [  1%]
tests/test_cpu.py::test_target_detection[linux-rhel7-broadwell] PASSED                                                                                                    [  2%]
tests/test_cpu.py::test_target_detection[linux-rhel7-skylake_avx512] PASSED                                                                                               [  2%]
tests/test_cpu.py::test_target_detection[linux-rhel7-ivybridge] PASSED                                                                                                    [  2%]
tests/test_cpu.py::test_target_detection[linux-rhel7-haswell] PASSED                                                                                                      [  3%]
tests/test_cpu.py::test_target_detection[linux-rhel7-x86_64_v3] PASSED                                                                                                    [  3%]
tests/test_cpu.py::test_target_detection[linux-rhel7-zen] PASSED                                                                                                          [  3%]

...etc....