From 5effe635903c7c09aed0053ddbf0256fbc643247 Mon Sep 17 00:00:00 2001 From: Blazej Floch Date: Wed, 23 Oct 2019 17:22:13 -0400 Subject: [PATCH] Skip `test_build_cmake` on Windows. The goal is to have better visibility of failure on Windows in our automated tests, while the CMake issues are being addressed. Added a known issues and limitations section in the README. --- README.md | 9 +++++++++ src/rez/tests/test_build.py | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 3bf395909..d93a448f9 100644 --- a/README.md +++ b/README.md @@ -194,3 +194,12 @@ like any other package: * Has a memcached-based caching system, for caching environment resolves; * Has a package filtering feature, allowing for staged package releases such as alpha and beta packages. + +## Known issues and limitations + +* Currently CMake builds do not function on Windows with Rez and + the related tests are skipped. A fix requires multiple changes that are on + the roadmap. Users have successfully implemented workarounds to utilize + CMake with Rez under Windows, but the goal is to provide a seamless experience + on any platform in the future. For details checkout + https://github.com/nerdvegas/rez/issues/703 diff --git a/src/rez/tests/test_build.py b/src/rez/tests/test_build.py index 13cb19380..3ac7a8b55 100644 --- a/src/rez/tests/test_build.py +++ b/src/rez/tests/test_build.py @@ -9,6 +9,7 @@ import unittest from rez.tests.util import TestBase, TempdirMixin, find_file_in_path, \ per_available_shell, install_dependent, program_dependent +from rez.utils.platform_ import platform_ import shutil import os.path @@ -155,6 +156,11 @@ def test_builds_anti(self): @program_dependent("cmake") def test_build_cmake(self): """Test a cmake-based package.""" + if platform_.name == "windows": + self.skipTest("This test does not run on Windows due to temporary" + "limitations of the cmake build_system plugin" + " implementation.") + self.assertRaises(PackageFamilyNotFoundError, self._create_context, "sup_world==3.8") self._test_build_translate_lib()