From 1cce8a8715e267ad557d21ab0a43f83e76e7dbae Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 10 Jun 2016 10:12:06 -0500 Subject: Automate core way of testing libraries (i.e. root/lib/test requirement) for most current tests. --- status/Jamfile.v2 | 127 +++++++----------------------------------------------- 1 file changed, 15 insertions(+), 112 deletions(-) (limited to 'status') diff --git a/status/Jamfile.v2 b/status/Jamfile.v2 index 11dbe24c84..8a0f878a8d 100644 --- a/status/Jamfile.v2 +++ b/status/Jamfile.v2 @@ -22,6 +22,7 @@ import modules ; import project ; import regex ; import modules ; +import path ; local check-libs-only = [ MATCH "^--(check-libs-only)" : [ modules.peek : ARGV ] ] ; local check-libs-only-targets = ; @@ -81,149 +82,51 @@ local rule run-tests ( root : tests * ) } } +local libs-to-test = ; +for local libdir in [ path.glob $(BOOST_ROOT) : libs/* ] +{ + local jamfiles = [ path.glob [ path.join $(libdir) test ] : [ modules.peek project : JAMFILE ] ] ; + if $(jamfiles) + { + libs-to-test += $(libdir:B) ; + } +} +libs-to-test = [ SORT $(libs-to-test) ] ; + +run-tests libs : $(libs-to-test)/test ; + # Tests from Jamfiles in individual library test subdirectories # Please keep these in alphabetic order by test-suite name run-tests libs : - accumulators/test # test-suite accumulators - algorithm/test # test-suite algorithm algorithm/minmax/test # test-suite algorith/minmax algorithm/string/test # test-suite algorithm/string - align/test # test-suite align - array/test # test-suite array - asio/test # test-suite asio - assert/test # test-suite assert - assign/test # test-suite assign - atomic/test # test-suite atomic - any/test # test-suite any - bimap/test # test-suite bimap - bind/test # test-suite bind - chrono/test # test-suite chrono - circular_buffer/test # test-suite circular_buffer - compute/test # test-suite compute concept_check # test-suite concept_check - config/test # test-suite config container/bench # test-suite container benchmarks container/example # test-suite container_example - container/test # test-suite container_test - context/test # test-suite context - conversion/test # test-suite conversion - convert/test # test-suite convert - core/test # test-suite core core/test/swap # test-suite core/swap - coroutine/test # test-suite coroutine - coroutine2/test # test-suite coroutine2 - crc/test # test-suite crc - date_time/test # test-suite date_time - detail/test # test-suite detail disjoint_sets # test-suite disjoint_sets - dll/test # test-suite dll dynamic_bitset # test-suite dynamic_bitset - endian/test # test-suite endian - exception/test - filesystem/test # test-suite filesystem - flyweight/test # test-suite flyweight - foreach/test # test-suite foreach - format/test # test-suite format - function/test # test-suite function - functional/test # test-suite functional functional/factory/test # test-suite functional/factory functional/forward/test # test-suite functional/forward functional/hash/test/extra # test-suite functional/hash functional/overloaded_function/test # test-suite func./overloaded_function - function_types/test # test-suite function_types - fusion/test # test-suite fusion - geometry/test # test-suite geometry geometry/index/test # test-suite geometry/index - gil/test # test-suite gil - graph/test # test-suite graph - graph_parallel/test # test-suite graph/parallel - hana/test # test-suite hana - heap/test # test-suite heap - icl/test # test-suite icl - integer/test # test-suite integer + geometry/extensions/test # test-suite geometry/extensions interprocess/example # test-suite interprocess_example - interprocess/test # test-suite interprocess_test intrusive/example # test-suite intrusive_example - intrusive/test # test-suite intrusive_test - io/test # test-suite io - iostreams/test # test-suite iostreams - iterator/test # test-suite iterator - lambda/test # test-suite lambda - lexical_cast/test # test-suite lexical_cast - local_function/test # test-suite local_function - locale/test # test-suite locale - log/test # test-suite log - logic/test # test-suite logic - lockfree/test # test-suite lockfree - math/test # test-suite math - metaparse/test # test-suite metaparse move/example # test-suite move_example - move/test # test-suite move_test - mpi/test # test-suite mpi - mpl/test # test-suite mpl - msm/test # msm-unit-tests - multi_array/test # test-suite multi_array - multi_index/test # test-suite multi_index - multiprecision/test # test-suite multiprecision numeric/conversion/test # test-suite numeric/conversion numeric/interval/test # test-suite numeric/interval numeric/odeint/test # test-suite numeric/odeint numeric/ublas/test # test-suite numeirc/uBLAS - optional/test # test-suite optional - parameter/test # test-suite parameter - phoenix/test # test-suite phoenix - polygon/test # test-suite polygon - pool/test # test-suite pool - predef/test # test-suite predef - preprocessor/test # test-suite preprocessor - program_options/test # test-suite program_options - property_map/test # test-suite property_map - property_tree/test # test-suite property_test - proto/test # test-suite proto - ptr_container/test # test-suite ptr_container - python/test # test-suite python - qvm/test # test-suite qvm - random/test # test-suite random - range/test # test-suite range - ratio/test # test-suite ratio - rational/test # test-suite rational - regex/test # test-suite regex regex/example # test-suite regex-examples - scope_exit/test # test-suite scope_exit - serialization/test # test-suite serialization - signals/test # test-suite signals - signals2/test # test-suite signals2 - smart_ptr/test # test-suite smart_ptr - sort/test # test-suite sort spirit/classic/test # test-suite classic spirit - spirit/test # test-suite spirit_v2 spirit/repository/test # test-suite spirit_v2 repository - statechart/test # test-suite statechart static_assert # test-suite static_assert - system/test # test-suite system - test/test # test-suite test - thread/test # test-suite thread - throw_exception/test # test-suite throw_exception - timer/test # test-suite timer - tokenizer/test # test-suite tokenizer - tr1/test # test-suite tr1 - tti/test # test-suite tti - tuple/test # test-suite tuple - type_erasure/test # test-suite type_erasure - type_index/test # test-suite type_index - type_traits/test # test-suite type_traits - typeof/test # test-suite typeof - units/test # test-suite units unordered/test/unordered # test-suite unordered unordered/test/exception # test-suite unordered-exception utility/identity_type/test # test-suite utility/identity_type - utility/test # test-suite utility - uuid/test # test-suite uuid - variant/test # test-suite variant - vmd/test # test-suite vmd wave/test/build # test-suite wave - winapi/test # test-suite winapi - xpressive/test # test-suite xpressive ; run-tests tools : -- cgit v1.2.1