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

Version Path
couchbase-3.0.0-universal-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.beta.1 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.5 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.4 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.3 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/json/.conan/test_package/conanfile.py
couchbase-3.0.0.alpha.2 ext/third_party/json/.conan/test_package/conanfile.py