Skip to content

Commit 46e445f

Browse files
committed
wip
1 parent b220e9e commit 46e445f

5 files changed

Lines changed: 7 additions & 98 deletions

File tree

test/functional/subsystems_build_test.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,6 @@ def test_msys2(self, static):
118118
check_vs_runtime("app.exe", client, "15", "Debug", static_runtime=static,
119119
subsystem="msys2")
120120

121-
@pytest.mark.parametrize("static", [True, False])
122-
@pytest.mark.tool("mingw")
123-
def test_mingw(self, static):
124-
"""
125-
This will work if you installed the Mingw toolchain outside msys2, from
126-
https://sourceforge.net/projects/mingw/, and installed gcc, autotools, mingw32-make, etc
127-
128-
But this doesn't contain "make", only "mingw32-make"
129-
"""
130-
client = TestClient()
131-
self._build(client, static_runtime=static, make="mingw32-make")
132-
133-
check_exe_run(client.out, "main", "gcc", None, "Debug", "x86", None, subsystem="mingw32")
134-
check_vs_runtime("app.exe", client, "15", "Debug", static_runtime=static,
135-
subsystem="mingw64")
136-
137121
@pytest.mark.parametrize("static", [True, False])
138122
@pytest.mark.tool("msys2")
139123
@pytest.mark.tool("mingw64")
@@ -436,7 +420,6 @@ def test_mingw64(self):
436420

437421
@pytest.mark.tool("msys2")
438422
@pytest.mark.tool("msys2_clang64")
439-
@pytest.mark.skip(reason="This doesn't work, seems CMake issue")
440423
def test_msys2_clang64(self):
441424
"""
442425
FAILS WITH:

test/functional/toolchains/cmake/test_cps.py

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -518,70 +518,6 @@ def test(self):
518518
assert "liba_utils: Release!" in c.out
519519

520520

521-
@pytest.mark.skip(reason="Just to report to CMake upstream, and CPS feature request")
522-
@pytest.mark.tool("cmake", "4.2")
523-
def test_pure_cmake_shared():
524-
c = TestClient()
525-
526-
cmake = textwrap.dedent("""\
527-
set(CMAKE_CXX_COMPILER_WORKS 1)
528-
set(CMAKE_CXX_ABI_COMPILED 1)
529-
cmake_minimum_required(VERSION 4.2)
530-
project(myproj CXX)
531-
532-
set(CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_INFO "b80be207-778e-46ba-8080-b23bba22639e")
533-
534-
# First library: core
535-
add_library(mypkg_core src/mypkg_core.cpp)
536-
target_include_directories(mypkg_core PUBLIC
537-
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
538-
$<INSTALL_INTERFACE:include/core>)
539-
set_target_properties(mypkg_core PROPERTIES PUBLIC_HEADER "include/mypkg_core.h")
540-
541-
# Second library: utils
542-
add_library(mypkg_utils src/mypkg_utils.cpp)
543-
544-
target_include_directories(mypkg_utils PUBLIC
545-
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
546-
$<INSTALL_INTERFACE:include/utils>)
547-
set_target_properties(mypkg_utils PROPERTIES PUBLIC_HEADER "include/mypkg_utils.h")
548-
549-
target_link_libraries(mypkg_utils PRIVATE mypkg_core)
550-
551-
install(TARGETS mypkg_core EXPORT mypkg
552-
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/core)
553-
install(TARGETS mypkg_utils EXPORT mypkg
554-
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/utils)
555-
556-
install(PACKAGE_INFO mypkg EXPORT mypkg)
557-
""")
558-
559-
# Create source files for both libraries
560-
core_cpp = gen_function_cpp(name="mypkg_core")
561-
core_h = gen_function_h(name="mypkg_core")
562-
utils_cpp = gen_function_cpp(name="mypkg_utils", includes=["mypkg_core"],
563-
calls=["mypkg_core"])
564-
utils_h = gen_function_h(name="mypkg_utils")
565-
566-
# First, try with the standard mypkg-config.cmake consumption
567-
c.save({"CMakeLists.txt": cmake,
568-
"src/mypkg_core.cpp": core_cpp,
569-
"include/mypkg_core.h": core_h,
570-
"src/mypkg_utils.cpp": utils_cpp,
571-
"include/mypkg_utils.h": utils_h})
572-
573-
c.run_command(f"cmake . -DBUILD_SHARED_LIBS=ON")
574-
print(c.out)
575-
c.run_command("cmake --build . --config Release")
576-
print(c.out)
577-
c.run_command("cmake --install . --config Release --prefix=mypkginstall")
578-
print(c.out)
579-
cps = c.load("mypkginstall/cps/mypkg.cps")
580-
print(cps)
581-
cps_release = c.load("mypkginstall/cps/mypkg@release.cps")
582-
print(cps_release)
583-
584-
585521
@pytest.mark.tool("cmake", "4.2")
586522
def test_cps_name_mapping():
587523
c = TestClient()

test/functional/toolchains/gnu/autotools/test_win_bash.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ def test_autotools_bash_complete_ucrt64():
6969
try:
7070
msys2_path = tools_locations["msys2"]["system"]["path"]["Windows"]
7171
except KeyError:
72-
pytest.skip("msys2 path not defined")
73-
try:
74-
ucrt64_path = tools_locations["ucrt64"]["system"]["path"]["Windows"]
75-
ucrt64_path = ucrt64_path.replace("\\", "/")
76-
except KeyError:
77-
pytest.skip("ucrt64 path not defined")
72+
pytest.skip("msys2 path not defined") # pragma: no cover
7873

7974
client = TestClient(path_with_spaces=False)
8075
profile_win = textwrap.dedent(f"""
@@ -223,7 +218,7 @@ def test_add_msys2_path_automatically(scope):
223218
try:
224219
bash_path = tools_locations["msys2"]["system"]["path"]["Windows"] + "/bash.exe"
225220
except KeyError:
226-
pytest.skip("msys2 path not defined")
221+
pytest.skip("msys2 path not defined") # pragma: no cover
227222

228223
client.save_home({"global.conf": textwrap.dedent("""
229224
tools.microsoft.bash:subsystem=msys2
@@ -259,7 +254,7 @@ def test_conf_inherited_in_test_package():
259254
try:
260255
bash_path = tools_locations["msys2"]["system"]["path"]["Windows"] + "/bash.exe"
261256
except KeyError:
262-
pytest.skip("msys2 path not defined")
257+
pytest.skip("msys2 path not defined") # pragma: no cover
263258

264259
conanfile = textwrap.dedent("""
265260
from conan import ConanFile
@@ -422,9 +417,9 @@ def test_autotools_support_custom_make():
422417
bash_path = tools_locations["msys2"]["system"]["path"]["Windows"] + "/bash.exe"
423418
make_path = tools_locations["msys2"]["system"]["path"]["Windows"] + "/make.exe"
424419
except KeyError:
425-
pytest.skip("msys2 path not defined")
420+
pytest.skip("msys2 path not defined") # pragma: no cover
426421
if not os.path.exists(make_path):
427-
pytest.skip("msys2 make not installed")
422+
pytest.skip("msys2 make not installed") # pragma: no cover
428423

429424
make_path = make_path.replace("/", "\\")
430425
assert os.path.exists(make_path)

test/functional/toolchains/gnu/test_pkg_config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def generate(self):
7474
assert "VARIABLES: /usr/local" in c.out
7575

7676

77-
def test_pkg_config_round_tripe_cpp_info():
77+
def test_pkg_config_round_trip_cpp_info():
7878
""" test that serialize and deserialize CppInfo works
7979
"""
8080
try:
@@ -83,8 +83,7 @@ def test_pkg_config_round_tripe_cpp_info():
8383
os_ = platform.system()
8484
pkg_config_path = tools_locations["pkg_config"][version]["path"][os_] + "/" + exe
8585
except KeyError:
86-
pytest.skip("pkg-config path not defined")
87-
return
86+
pytest.skip("pkg-config path not defined") # pragma: no cover
8887

8988
c = TestClient()
9089
conanfile = textwrap.dedent("""

test/integration/cache/backup_sources_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,6 @@ def __init__(self, store=None):
605605

606606
@staticmethod
607607
def _attach_to(app, store): # noqa
608-
@app.route("/internet/<file>", method=["GET"])
609-
def get_internet_file(_):
610-
return HTTPError(401, "You Are Not Allowed Here")
611-
612608
@app.route("/downloader1/<file>", method=["GET"])
613609
def get_file(file):
614610
return static_file(file, http_server_base_folder_backup1)

0 commit comments

Comments
 (0)