Debian Codegraph @

.conan/test_package/conanfile.py

raw symbols SCIP
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 from conans import ConanFile, CMake, tools, RunEnvironment
5 import os
6
7
8 class TestPackageConan(ConanFile):
9 settings = "os", "compiler", "build_type", "arch"
10 generators = "cmake"
11
12 def build(self):
13 cmake = CMake(self)
14 cmake.configure()
15 cmake.build()
16
17 def test(self):
18 assert os.path.exists(os.path.join(self.deps_cpp_info["CTRE"].rootpath, "licenses", "LICENSE"))
19 bin_path = os.path.join("bin", "test_package")
20 self.run(bin_path, run_environment=True)