1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3 4from conans import ConanFile, CMake 5import os 6 7 8class 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) 20 self.run("flatc --version", run_environment=True) 21 self.run("flathash fnv1_16 conan", run_environment=True) 22