test: test_package now is tested also with C++20 modules

This commit is contained in:
Mateusz Pusz
2024-11-18 13:56:18 +01:00
parent c1d323a91a
commit 6ea2adf936
2 changed files with 16 additions and 3 deletions

View File

@ -64,5 +64,8 @@ class TestPackageConan(ConanFile):
def test(self):
if can_run(self):
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package")
if self.dependencies["mp-units"].options.cxx_modules:
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package")
self.run(bin_path, env="conanrun")
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package-headers")
self.run(bin_path, env="conanrun")