Austin Schuh | cbc1740 | 2019-01-21 21:00:30 -0800 | [diff] [blame^] | 1 | #!/usr/bin/env python |
2 | # -*- coding: utf-8 -*- | ||||
3 | |||||
4 | from conans import ConanFile, CMake | ||||
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 | bin_path = os.path.join("bin", "test_package") | ||||
19 | self.run(bin_path, run_environment=True) |