blob: 735e31d27bfe45e58857f60112cbb16b24fd62df [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001#!/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)