Skip to content

Commit f1ad617

Browse files
committed
running tests with conan
1 parent 01d0ba1 commit f1ad617

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

conanfile.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@ class EnumFlagsConan(b2.B2.Mixin, ConanFile):
1818
url = "https://github.com/grisumbras/enum-flags"
1919
homepage = url
2020

21+
settings = "os", "compiler", "build_type", "arch", "cppstd"
2122
no_copy_source = True
23+
24+
def config_options(self):
25+
if not self.develop:
26+
del self.settings.os
27+
del self.settings.compiler
28+
del self.settings.build_type
29+
del self.settings.arch
30+
31+
def build_requirements(self):
32+
if self.develop:
33+
self.build_requires("boost_test/[>1.60]@bincrafters/stable")
34+
35+
def package_info(self):
36+
self.info.header_only()

test/build.jam

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,27 @@ project flags_tests
1010
;
1111

1212

13-
lib boost_utf
14-
:
15-
: <name>boost_unit_test_framework
16-
;
17-
18-
1913
unit-test main-test
20-
: main-test.cpp boost_utf
21-
: <define>BOOST_TEST_DYN_LINK
22-
<define>BOOST_TEST_MODULE=enum_flags
14+
: main-test.cpp
15+
/boost_test//libs
16+
/boost_config//libs
17+
/boost_preprocessor//libs
18+
/boost_type_traits//libs
19+
/boost_utility//libs
20+
/boost_core//libs
21+
/boost_smart_ptr//libs
22+
/boost_assert//libs
23+
/boost_throw_exception//libs
24+
/boost_predef//libs
25+
/boost_static_assert//libs
26+
/boost_mpl//libs
27+
/boost_numeric_conversion//libs
28+
/boost_function//libs
29+
/boost_integer//libs
30+
/boost_type_index//libs
31+
/boost_container_hash//libs
32+
/boost_bind//libs
33+
: <define>BOOST_TEST_MODULE=enum_flags
2334
;
2435

2536

0 commit comments

Comments
 (0)