# Boost Typeof Library test Jamfile import set ; # The special requirement is not ported yet. # #local rule special-requirements ( toolset variant : properties * ) #{ # # Tru64/CXX6.5 hangs on most tests, so just turn it off completely. # # if $(UNIX) && $(OS) = OSF # { # switch $(toolset) # { # case tru64cxx65* : properties = # [ replace-properties $(properties) : no ] ; # } # } # # return $(properties) ; #} rule typeof-test ( source ) { return [ compile $(source) : BOOST_TYPEOF_NATIVE : $(source:B)_native ] [ compile $(source) : BOOST_TYPEOF_COMPLIANT : $(source:B)_emulation ] ; } rule all-tests ( ) { local all ; for local t in [ set.difference [ glob *.cpp ] : odr1.cpp odr2.cpp ] { all += [ typeof-test $(t) ] ; } all += [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_NATIVE : odr_native ] ; all += [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_COMPLIANT : odr_emulation ] ; return $(all) ; } test-suite "typeof" : [ all-tests ] ;