Skip to content

Commit

Permalink
minor test refactors (#16947)
Browse files Browse the repository at this point in the history
Changelog: Omit
Docs: Omit
  • Loading branch information
ErniGH authored Sep 6, 2024
2 parents 6acce7b + b0e812d commit d99c714
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 121 deletions.
Empty file.
Empty file.
52 changes: 0 additions & 52 deletions test/functional/settings/cppstd/compiler_cppstd_test.py

This file was deleted.

69 changes: 0 additions & 69 deletions test/functional/settings/libcxx_setting_test.py

This file was deleted.

13 changes: 13 additions & 0 deletions test/integration/toolchains/cmake/test_cmaketoolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1728,3 +1728,16 @@ def test_tricore():
assert 'string(APPEND CONAN_C_FLAGS " -mtc131")' in content
assert 'string(APPEND CONAN_SHARED_LINKER_FLAGS " -mtc131")' in content
assert 'string(APPEND CONAN_EXE_LINKER_FLAGS " -mtc131")' in content


def test_declared_stdlib_and_passed():
client = TestClient()
client.save({"conanfile.txt": "[generators]\nCMakeToolchain"})

client.run('install . -s compiler=sun-cc -s compiler.libcxx=libCstd')
tc = client.load("conan_toolchain.cmake")
assert 'string(APPEND CONAN_CXX_FLAGS " -library=Cstd")' in tc

client.run('install . -s compiler=sun-cc -s compiler.libcxx=libstdcxx')
tc = client.load("conan_toolchain.cmake")
assert 'string(APPEND CONAN_CXX_FLAGS " -library=stdcxx4")' in tc

0 comments on commit d99c714

Please sign in to comment.