123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- # (C) Copyright Edward Diener 2011,2012
- # Use, modification and distribution are subject to 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).
- #
- # Tti testing Jamfile
- #
- import testing ;
- project tti_tests : requirements <warnings>on
- <toolset>gcc:<warnings>all
- <toolset>msvc:<warnings>all
- <toolset>gcc-4.3.0:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.4.0:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.4.7:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.5.0:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.5.0:<linkflags>"-Wl,--enable-auto-import"
- <toolset>gcc-4.5.2:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.6.0:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.6.1:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.6.2:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.6.3:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.7.0:<cxxflags>-Wno-variadic-macros
- <toolset>gcc-4.7.2:<cxxflags>-Wno-variadic-macros
- ;
-
- #
- # Member functions composite syntax
- #
- alias ttimfsig
- :
- [ run test_has_member.cpp ]
- [ compile test_has_member_compile.cpp ]
- [ compile-fail test_has_member_fail.cpp ]
- [ compile-fail test_has_member_fail2.cpp ]
- [ compile-fail test_has_member_fail3.cpp ]
- ;
- #
- # Member functions composite syntax, cv-qualified
- #
- alias ttimfsigcv
- :
- [ run test_has_member_cv.cpp ]
- [ compile test_has_member_cv_compile.cpp ]
- [ compile-fail test_has_member_cv_fail.cpp ]
- [ compile-fail test_has_member_cv_fail2.cpp ]
- [ compile-fail test_has_member_cv_fail3.cpp ]
- [ compile-fail test_has_member_cv_fail4.cpp ]
- [ compile-fail test_has_member_cv_fail5.cpp ]
- ;
- #
- # Member data
- #
- alias ttimd
- :
- [ run test_has_mem_data.cpp ]
- [ run test_has_mem_data2.cpp ]
- [ compile test_has_mem_data_compile.cpp ]
- [ compile-fail test_has_mem_data_fail.cpp ]
- [ compile-fail test_has_mem_data_fail2.cpp ]
- [ compile-fail test_has_mem_data_fail3.cpp ]
- ;
- #
- # Member functions specific syntax
- #
- alias ttimfn
- :
- [ run test_has_mem_fun.cpp ]
- [ compile test_has_mem_fun_compile.cpp ]
- [ compile-fail test_has_mem_fun_fail.cpp ]
- [ compile-fail test_has_mem_fun_fail2.cpp ]
- [ compile-fail test_has_mem_fun_fail3.cpp ]
- ;
- #
- # Member functions specific syntax, cv-qualified
- #
- alias ttimfncv
- :
- [ run test_has_mem_fun_cv.cpp ]
- [ compile test_has_mem_fun_cv_compile.cpp ]
- [ compile-fail test_has_mem_fun_cv_fail.cpp ]
- [ compile-fail test_has_mem_fun_cv_fail2.cpp ]
- [ compile-fail test_has_mem_fun_cv_fail3.cpp ]
- [ compile-fail test_has_mem_fun_cv_fail4.cpp ]
- [ compile-fail test_has_mem_fun_cv_fail5.cpp ]
- [ compile-fail test_has_mem_fun_cv_fail6.cpp ]
- ;
- #
- # Static member functions composite syntax
- #
- alias ttismfsig
- :
- [ run test_has_static_member.cpp ]
- [ compile test_has_static_member_compile.cpp ]
- [ compile-fail test_has_static_member_fail.cpp ]
- [ compile-fail test_has_static_member_fail2.cpp ]
- ;
- #
- # Static member data
- #
- alias ttismd
- :
- [ run test_has_static_mem_data.cpp ]
- [ compile test_has_static_mem_data_compile.cpp ]
- [ compile-fail test_has_static_mem_data_fail.cpp ]
- [ compile-fail test_has_static_mem_data_fail2.cpp ]
- [ compile-fail test_has_static_mem_data_fail3.cpp ]
- ;
- #
- # Static member functions
- #
- alias ttismfn
- :
- [ run test_has_static_mem_fun.cpp ]
- [ compile test_has_static_mem_fun_compile.cpp ]
- [ compile-fail test_has_static_mem_fun_fail.cpp ]
- [ compile-fail test_has_static_mem_fun_fail2.cpp ]
- ;
- #
- # Member or static member data
- #
- alias ttidata
- :
- [ run test_has_data.cpp ]
- [ compile test_has_data_compile.cpp ]
- [ compile-fail test_has_data_fail.cpp ]
- [ compile-fail test_has_data_fail2.cpp ]
- [ compile-fail test_has_data_fail3.cpp ]
- [ compile-fail test_has_data_fail4.cpp ]
- [ compile-fail test_has_data_fail5.cpp ]
- [ compile-fail test_has_data_fail6.cpp ]
- ;
- #
- # Member or static member function
- #
- alias ttifun
- :
- [ run test_has_fun.cpp ]
- [ compile test_has_fun_compile.cpp ]
- [ compile-fail test_has_fun_fail.cpp ]
- [ compile-fail test_has_fun_fail2.cpp ]
- [ compile-fail test_has_fun_fail3.cpp ]
- [ compile-fail test_has_fun_fail4.cpp ]
- [ compile-fail test_has_fun_fail5.cpp ]
- ;
- #
- # Templates
- #
- alias ttitmp
- :
- [ run test_has_template.cpp : : : <define>BOOST_PP_VARIADICS=0 ]
- [ compile test_has_template_compile.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_fail.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_fail2.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_fail3.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_fail4.cpp : <define>BOOST_PP_VARIADICS=0 ]
- ;
- #
- # Templates, check params
- #
- alias ttitmpcp
- :
- [ run test_has_template_cp.cpp : : : <define>BOOST_PP_VARIADICS=0 ]
- [ compile test_has_template_cp_compile.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_cp_fail.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_cp_fail2.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_cp_fail3.cpp : <define>BOOST_PP_VARIADICS=0 ]
- [ compile-fail test_has_template_cp_fail4.cpp : <define>BOOST_PP_VARIADICS=0 ]
- ;
-
- #
- # Type
- #
- alias ttity
- :
- [ run test_has_type.cpp ]
- [ compile test_has_type_compile.cpp ]
- [ compile-fail test_has_type_fail.cpp ]
- [ compile-fail test_has_type_fail2.cpp ]
- [ compile-fail test_has_type_fail3.cpp ]
- [ run test_has_type_ct.cpp ]
- [ compile test_has_type_ct_compile.cpp ]
- [ compile-fail test_has_type_ct_fail.cpp ]
- [ compile-fail test_has_type_ct_fail2.cpp ]
- [ compile-fail test_has_type_ct_fail3.cpp ]
- [ compile-fail test_has_type_ct_fail4.cpp ]
- [ compile-fail test_has_type_ct_fail5.cpp ]
- ;
- #
- # Nested type
- #
- alias ttimemty
- :
- [ run test_mem_type.cpp ]
- [ compile test_mem_type_compile.cpp ]
- ;
- #
- # All of tti, non-variadic macros
- #
- alias ttinovm : ttimfsig ttimfsigcv ttimd ttimfn ttimfncv ttismfsig ttismd ttismfn ttidata ttifun ttitmp ttitmpcp ttity ttimemty ;
- alias ttitmpv : :
- <toolset>gcc
- <toolset-gcc:version>3.4.2
- ;
-
- alias ttitmpv : :
- <toolset>gcc
- <toolset-gcc:version>3.4.5
- ;
-
- alias ttitmpv : :
- <toolset>gcc
- <toolset-gcc:version>4.1.2
- ;
-
- alias ttitmpv : :
- <toolset>gcc
- <toolset-gcc:version>4.2.1
- ;
-
- #
- # Templates, variadic macro
- #
- alias ttitmpv
- :
- [ run test_has_template.cpp : : :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_v ]
- [ compile test_has_template_compile.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_compile_v ]
- [ compile-fail test_has_template_fail.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_fail_v ]
- [ compile-fail test_has_template_fail2.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_fail2_v ]
- [ compile-fail test_has_template_fail3.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_fail3_v ]
- [ compile-fail test_has_template_fail4.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_fail4_v ]
- ;
- alias ttitmpcpv : :
- <toolset>gcc
- <toolset-gcc:version>3.4.2
- ;
-
- alias ttitmpcpv : :
- <toolset>gcc
- <toolset-gcc:version>3.4.5
- ;
-
- alias ttitmpcpv : :
- <toolset>gcc
- <toolset-gcc:version>4.1.2
- ;
-
- alias ttitmpcpv : :
- <toolset>gcc
- <toolset-gcc:version>4.2.1
- ;
-
- #
- # Templates, variadic macro, check params, non-variadic syntax
- #
- alias ttitmpcpv
- :
- [ run test_has_template_cp.cpp : : :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_cp_v ]
- [ compile test_has_template_cp_compile.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_cp_compile_v ]
- [ compile-fail test_has_template_cp_fail.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_cp_fail_v ]
- [ compile-fail test_has_template_cp_fail2.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_cp_fail2_v ]
- [ compile-fail test_has_template_cp_fail3.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_cp_fail3_v ]
- [ compile-fail test_has_template_cp_fail4.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 :
- test_has_template_cp_fail4_v ]
- ;
-
- alias ttitmpcpvm : :
- <toolset>gcc
- <toolset-gcc:version>3.4.2
- ;
-
- alias ttitmpcpvm : :
- <toolset>gcc
- <toolset-gcc:version>3.4.5
- ;
-
- alias ttitmpcpvm : :
- <toolset>gcc
- <toolset-gcc:version>4.1.2
- ;
-
- alias ttitmpcpvm : :
- <toolset>gcc
- <toolset-gcc:version>4.2.1
- ;
-
- #
- # Templates, variadic macro, check params, variadic syntax
- #
- alias ttitmpcpvm
- :
- [ run test_vm_has_template_cp.cpp : : :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 ]
- [ compile test_vm_has_template_cp_compile.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 ]
- [ compile-fail test_vm_has_template_cp_fail.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 ]
- [ compile-fail test_vm_has_template_cp_fail2.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 ]
- [ compile-fail test_vm_has_template_cp_fail3.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 ]
- [ compile-fail test_vm_has_template_cp_fail4.cpp :
- <toolset>gcc:<cxxflags>-std=c++0x
- <toolset>gcc-4.3.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.0:<cxxflags>-U__STRICT_ANSI__
- <toolset>gcc-4.4.7:<cxxflags>-U__STRICT_ANSI__
- <define>BOOST_PP_VARIADICS=1 ]
- ;
-
- #
- # Templates, non-variadic macro
- #
- alias ttitemplate : ttitmp ttitmpcp ;
- #
- # Templates, variadic macro
- #
- alias ttivm : ttitmpv ttitmpcpv ttitmpcpvm ;
- #
- # All templates
- #
- alias ttitemplate_all : ttitemplate ttivm ;
- #
- # All tests
- #
- alias tti : ttinovm ttivm ;
|