Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Windows CI tests #81

Merged
merged 1 commit into from
Jul 14, 2020
Merged

Enable Windows CI tests #81

merged 1 commit into from
Jul 14, 2020

Conversation

trym-b
Copy link
Contributor

@trym-b trym-b commented Jul 14, 2020

In order to run tests on Windows, Intel OpenCL runtime needs to be
installed to run the tests on a compute device. It is also required to
create a configuration file so that the tests are run on the CPU instead
of a GPU (since there are no GPU available in azure-pipelines)

Added update environment script in order to load the latest envrionement
variables set by Zivid-SDK after successful installation. PATH
environment variable must be updated befre running the tests.

Ignored sample testing for windows, because of the following error:

python: can't open file 'D:\a\samples\sample_print_version_info.py': [Errno 2] No such file or directory

Ignored winreg import error, this module is not available on Linux

@eskaur
Copy link
Member

eskaur commented Jul 14, 2020

Little typo in commit message: "envrionement"

import pytest


@pytest.mark.skipif(
platform.system() == "Windows",
reason=r"python: can't open file 'D:\a\samples\sample_capture_from_file.py': [Errno 2] No such file or directory",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can make an issue to investigate this further later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#82

Copy link
Contributor

@nedrebo nedrebo Jul 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is hard to find the link between this code and #82.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is already addressed in #85. No need to do anything with this now, but in general, it is a good rule to never leave loose ends around in master. Often they are not going to be cleaned up right away when things are still fresh in memory.

In order to run tests on Windows, Intel OpenCL runtime needs to be
installed to run the tests on a compute device. It is also required to
create a configuration file so that the tests are run on the CPU instead
of a GPU (since there are no GPU available in azure-pipelines)

Added update environment script in order to load the latest environment
variables set by `Zivid-SDK` after successful installation. `PATH`
environment variable must be updated befre running the tests.

Ignored sample testing for windows, because of the following error:
```
python: can't open file 'D:\a\samples\sample_print_version_info.py': [Errno 2] No such file or directory
```

Ignored `winreg` import error, this module is not available on Linux
@trym-b
Copy link
Contributor Author

trym-b commented Jul 14, 2020

Ready for next round @eskaur

@trym-b
Copy link
Contributor Author

trym-b commented Jul 14, 2020

Thank you for reviewing @eskaur

@trym-b trym-b merged commit c860ee1 into master Jul 14, 2020
@trym-b trym-b deleted the enable-tests-on-windows branch July 14, 2020 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants