22 lines
621 B
Python
22 lines
621 B
Python
import os
|
|
|
|
import conan
|
|
import conan.tools.build
|
|
import conan.tools.cmake
|
|
|
|
class sonus_test_package(conan.ConanFile):
|
|
settings = "os", "arch", "compiler", "build_type"
|
|
generators = "CMakeDeps", "CMakeToolchain"
|
|
test_type = "explicit"
|
|
def requirements(self):
|
|
self.requires(self.tested_reference_str)
|
|
def layout(self):
|
|
conan.tools.cmake.cmake_layout(self)
|
|
def build(self):
|
|
cmake = conan.tools.cmake.CMake(self)
|
|
cmake.configure()
|
|
cmake.build()
|
|
def test(self):
|
|
if conan.tools.build.can_run(self):
|
|
self.run(os.path.join(self.cpp.build.bindirs[0], "sonus-consumer"), env="conanrun")
|