diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..3c082c6 --- /dev/null +++ b/build.jam @@ -0,0 +1,22 @@ +# Copyright René Ferdinand Rivera Morell 2023-2024 +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +require-b2 5.2 ; + +constant boost_dependencies : + /boost/config//boost_config ; + +project /boost/typeof + ; + +explicit + [ alias boost_typeof : : : + : include $(boost_dependencies) ] + [ alias all : boost_typeof test ] + ; + +call-if : boost-library typeof + ; + diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index d0fc589..3911170 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -8,6 +8,10 @@ import testing ; import set ; +project : requirements + /boost/core//boost_core + ; + # The special requirement is not ported yet. # #local rule special-requirements ( toolset variant : properties * ) @@ -22,7 +26,7 @@ import set ; # [ replace-properties $(properties) : no ] ; # } # } -# +# # return $(properties) ; #} @@ -31,8 +35,8 @@ rule typeof-test ( source ) return [ compile $(source) : BOOST_TYPEOF_NATIVE : $(source:B)_native ] [ compile $(source) : BOOST_TYPEOF_EMULATION : - $(source:B)_emulation ] - ; + $(source:B)_emulation ] + ; } rule all-tests ( ) @@ -46,12 +50,12 @@ rule all-tests ( ) all += [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_NATIVE : odr_native ] ; all += [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_EMULATION : - odr_emulation ] ; - all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : BOOST_TYPEOF_EMULATION : - odr_no_uns ] ; - return $(all) ; + odr_emulation ] ; + all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : BOOST_TYPEOF_EMULATION : + odr_no_uns ] ; + return $(all) ; } -test-suite "typeof" +test-suite "typeof" : [ all-tests ] ;