Files
boost_typeof/test/Jamfile.v2

58 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2006-09-09 17:25:09 +00:00
# Copyright (C) 2006 Vladimir Prus
# Copyright (C) 2006 Arkadiy Vertleyb
# Use, modification and distribution is subject to the Boost Software
# License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
2006-01-31 15:38:14 +00:00
# Boost Typeof Library test Jamfile
2017-11-04 00:36:29 +02:00
import testing ;
2006-02-01 15:52:05 +00:00
import set ;
2006-01-31 15:38:14 +00:00
# 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) : <build>no ] ;
# }
# }
#
# return $(properties) ;
#}
rule typeof-test ( source )
{
return [ compile $(source) : <define>BOOST_TYPEOF_NATIVE :
$(source:B)_native ]
2006-06-25 23:59:21 +00:00
[ compile $(source) : <define>BOOST_TYPEOF_EMULATION :
2006-01-31 15:38:14 +00:00
$(source:B)_emulation ]
;
}
rule all-tests ( )
{
local all ;
2006-06-25 23:59:21 +00:00
# for local t in [ set.difference [ glob *.cpp ] : odr1.cpp odr2.cpp ]
for local t in [ set.difference [ glob *.cpp ] : [ glob odr*.cpp ] ]
2006-01-31 15:38:14 +00:00
{
all += [ typeof-test $(t) ] ;
}
2006-02-01 15:52:05 +00:00
all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_NATIVE :
odr_native ] ;
2006-06-25 23:59:21 +00:00
all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
2006-02-01 15:52:05 +00:00
odr_emulation ] ;
2006-06-25 23:59:21 +00:00
all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
odr_no_uns ] ;
2006-01-31 15:38:14 +00:00
return $(all) ;
}
test-suite "typeof"
: [ all-tests ]
;