From ed50bdcd7a7478a4f27d5e6d2d5e75e958aec8d1 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 31 Jan 2006 15:38:14 +0000 Subject: [PATCH] Add Jamfile.v2 [SVN r32480] --- test/Jamfile.v2 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 test/Jamfile.v2 diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 new file mode 100644 index 0000000..bc222a5 --- /dev/null +++ b/test/Jamfile.v2 @@ -0,0 +1,43 @@ +# Boost Typeof Library test Jamfile + + +# 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 [ glob *.cpp ] + { + all += [ typeof-test $(t) ] ; + } + return $(all) ; +} + +test-suite "typeof" + : [ all-tests ] + ;