Sha256: b00e5c827b882da27683311b2f49ae31191d2822b7958e6e34b046c52d2374d8
Contents?: true
Size: 699 Bytes
Versions: 24
Compression:
Stored size: 699 Bytes
Contents
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, CMake, tools, RunEnvironment import os class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): # Search for LICENSE file path = os.path.join(self.deps_cpp_info["json"].rootpath, "licenses", "LICENSE") assert os.path.isfile(path) # Validate package import with tools.environment_append(RunEnvironment(self).vars): bin_path = os.path.join("bin", "test_package") self.run(bin_path)
Version data entries
24 entries across 24 versions & 1 rubygems