Skip to content

Use ${IREE_HOST_SCRIPT_EXT} in CMake iree_py_test. - #2609

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:ctest-py-win
Jul 21, 2020
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:ctest-py-win

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

This gets the CMake Python tests closer to running/passing on Windows. There was no regression in #2590, the old iree_py_test.cmake also had this issue.

ctest -L bindings/python -V output before:

353: Test command: D:\dev\projects\iree\build_tools\cmake\run_test.sh "C:/Users/Scott/scoop/shims/python3.exe" "D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py"
353: Environment variables:
353:  PYTHONPATH=D:/dev/projects/iree-build-py/bindings/python:
353:  TEST_TMPDIR=bindings_python_pyiree_compiler_compiler_test_DEFAULT_test_tmpdir
353: Test timeout computed to be: 10000000
Process not started
 D:/dev/projects/iree/build_tools/cmake/run_test.sh
[unknown error]
5/5 Test #353: bindings/python/pyiree/compiler:compiler_test__DEFAULT ...***Not Run   0.00 sec

ctest -L bindings/python -V output after:

353: Test command: D:\dev\projects\iree\build_tools\cmake\run_test.bat "C:/Users/Scott/scoop/shims/python3.exe" "D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py"
353: Environment variables:
353:  PYTHONPATH=D:/dev/projects/iree-build-py/bindings/python:
353:  TEST_TMPDIR=bindings_python_pyiree_compiler_compiler_test_DEFAULT_test_tmpdir
353: Test timeout computed to be: 10000000
353: Running test:
353: C:/Users/Scott/scoop/shims/python3.exe D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py
353: Traceback (most recent call last):
353:   File "D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py", line 17, in <module>
353:     from pyiree import compiler
353: ModuleNotFoundError: No module named 'pyiree'
5/5 Test #353: bindings/python/pyiree/compiler:compiler_test__DEFAULT ...***Failed    0.44 sec

@ScottTodd ScottTodd added cmake platform/windows 🚪 Windows-specific build, execution, benchmarking, and deployment labels Jul 21, 2020
@ScottTodd
ScottTodd merged commit f85a439 into iree-org:main Jul 21, 2020
@ScottTodd
ScottTodd deleted the ctest-py-win branch July 21, 2020 22:36
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing platform/windows 🚪 Windows-specific build, execution, benchmarking, and deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants