Esempio n. 1
0
    def test_base(self, subsystem_require):
        if Version(conan_version) < Version(
                "1.0.0-beta.1") or platform.system() != "Windows":
            raise nose.SkipTest('Only windows test')
        files = cpp_hello_conan_files(name="Hello",
                                      version="0.1",
                                      deps=None,
                                      language=0,
                                      static=True,
                                      use_cmake=False)
        files["myprofile"] = """
[build_requires]
mingw_installer/1.0@conan/stable
%s
 
[settings]
os_build=Windows
arch_build=x86_64
os=Windows
arch=x86_64
compiler=gcc
compiler.version=5.4
compiler.libcxx=libstdc++11
compiler.exception=seh
compiler.threads=posix
""" % subsystem_require

        save_files(files)
        run("conan create %s conan/testing --profile ./myprofile --update" %
            path_dot())
Esempio n. 2
0
    def test_package_tools(self):
        if sys.version_info[0:2] == (3, 4):
            raise nose.SkipTest(
                'Py 3.4 fails with python setup.py install for some reason')

        run("pip install conan_package_tools --no-dependencies"
            )  # Install latest

        # To try build bzip2 with package tools
        librepo = "https://github.com/lasote/conan-bzip2.git"
        branch = "release/1.0.6"
        run("git clone --depth 1 %s -b %s ." % (librepo, branch))
        env = {
            "CONAN_USERNAME": "******",
            "CONAN_CHANNEL": "testing",
            "CONAN_DOCKER_USE_SUDO": "0",
            "CONAN_REFERENCE": "bzip2/1.0.6"
        }

        if platform.system() == "Windows":
            env["CONAN_VISUAL_VERSIONS"] = "15"
        elif platform.system() == "Linux":
            env["CONAN_GCC_VERSIONS"] = "5"
            # env["CONAN_USE_DOCKER"] = "1" docker command not found, check why and enable again
        elif platform.system() == "Darwin":
            env["CONAN_APPLE_CLANG_VERSIONS"] = "9.0"

        with tools.environment_append(env):
            run("conan --version")
            run("python build.py")
Esempio n. 3
0
 def setUp(self):
     super(LibPNGTest, self).setUp()
     run("conan remote add conan-community https://api.bintray.com/conan/conan-community/conan --insert 1",
         ignore_error=True)
     run("conan remove %s -f" % self.libref)
Esempio n. 4
0
 def test_install_remote(self):
     run("git clone --depth 1 %s -b %s ." % (self.librepo, self.branch))
     run("conan test test_package %s" % self.libref)
Esempio n. 5
0
 def test_repo(self):
     run("git clone --depth 1 %s -b %s ." % (self.librepo, self.branch))
     run(conan_create_command("conan/testing"))
Esempio n. 6
0
 def setUp(self):
     super(OpenSSLTest, self).setUp()
     run("conan remote add conan-center https://conan.bintray.com --insert 1")
     run("conan remove %s -f" % self.libref)