2012-01-09 17:21:04 +00:00
|
|
|
# Boost algorithm library test suite Jamfile ----------------------------
|
|
|
|
#
|
|
|
|
# Copyright Marshall Clow 2010-2012. Use, modification and
|
|
|
|
# distribution is 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)
|
|
|
|
#
|
|
|
|
# See http://www.boost.org for updates, documentation, and revision history.
|
|
|
|
|
|
|
|
import testing ;
|
|
|
|
|
2024-07-27 10:28:38 -05:00
|
|
|
project : requirements <library>/boost/algorithm//boost_algorithm ;
|
|
|
|
|
2013-02-08 17:21:43 +00:00
|
|
|
alias unit_test_framework
|
|
|
|
: # sources
|
2024-08-08 21:45:19 -05:00
|
|
|
/boost/test//boost_unit_test_framework
|
2017-06-27 16:43:17 -07:00
|
|
|
;
|
2013-02-08 17:21:43 +00:00
|
|
|
|
|
|
|
|
2012-01-09 17:21:04 +00:00
|
|
|
{
|
2018-10-27 12:09:35 +00:00
|
|
|
test-suite algorithm
|
2012-01-09 17:21:04 +00:00
|
|
|
# Search tests
|
2013-02-08 17:21:43 +00:00
|
|
|
: [ run empty_search_test.cpp unit_test_framework : : : : empty_search_test ]
|
|
|
|
[ run search_test1.cpp unit_test_framework : : : : search_test1 ]
|
|
|
|
[ run search_test2.cpp unit_test_framework : : : : search_test2 ]
|
|
|
|
[ run search_test3.cpp unit_test_framework : : : : search_test3 ]
|
|
|
|
[ run search_test4.cpp unit_test_framework : : : : search_test4 ]
|
|
|
|
[ compile-fail search_fail1.cpp : : : : ]
|
|
|
|
[ compile-fail search_fail2.cpp : : : : ]
|
|
|
|
[ compile-fail search_fail3.cpp : : : : ]
|
2012-01-09 17:21:04 +00:00
|
|
|
|
2014-12-02 14:38:25 -08:00
|
|
|
# Misc tests
|
2013-02-08 17:21:43 +00:00
|
|
|
[ run clamp_test.cpp unit_test_framework : : : : clamp_test ]
|
2021-07-31 21:20:56 +02:00
|
|
|
[ run is_clamped_test.cpp unit_test_framework : : : : is_clamped_test ]
|
2014-12-02 14:38:25 -08:00
|
|
|
[ run power_test.cpp unit_test_framework : : : : power_test ]
|
2014-12-03 15:15:15 -08:00
|
|
|
[ compile-fail power_fail1.cpp : : : : ]
|
2017-06-27 16:43:17 -07:00
|
|
|
|
2012-02-18 07:17:39 +00:00
|
|
|
# Cxx11 tests
|
2013-02-08 17:21:43 +00:00
|
|
|
[ run all_of_test.cpp unit_test_framework : : : : all_of_test ]
|
|
|
|
[ run any_of_test.cpp unit_test_framework : : : : any_of_test ]
|
|
|
|
[ run none_of_test.cpp unit_test_framework : : : : none_of_test ]
|
|
|
|
[ run one_of_test.cpp unit_test_framework : : : : one_of_test ]
|
2017-06-27 16:43:17 -07:00
|
|
|
|
2013-02-08 17:21:43 +00:00
|
|
|
[ run ordered_test.cpp unit_test_framework : : : : ordered_test ]
|
|
|
|
[ run find_if_not_test1.cpp unit_test_framework : : : : find_if_not_test1 ]
|
|
|
|
[ run copy_if_test1.cpp unit_test_framework : : : : copy_if_test1 ]
|
|
|
|
[ run copy_n_test1.cpp unit_test_framework : : : : copy_n_test1 ]
|
|
|
|
[ run iota_test1.cpp unit_test_framework : : : : iota_test1 ]
|
2012-02-18 07:17:39 +00:00
|
|
|
|
2013-02-08 17:21:43 +00:00
|
|
|
[ run is_permutation_test1.cpp unit_test_framework : : : : is_permutation_test1 ]
|
|
|
|
[ run partition_point_test1.cpp unit_test_framework : : : : partition_point_test1 ]
|
|
|
|
[ run is_partitioned_test1.cpp unit_test_framework : : : : is_partitioned_test1 ]
|
|
|
|
[ run partition_copy_test1.cpp unit_test_framework : : : : partition_copy_test1 ]
|
2012-02-18 07:17:39 +00:00
|
|
|
|
2013-05-09 17:22:46 +00:00
|
|
|
# Cxx14 tests
|
|
|
|
[ run equal_test.cpp unit_test_framework : : : : equal_test ]
|
|
|
|
[ run mismatch_test.cpp unit_test_framework : : : : mismatch_test ]
|
|
|
|
|
2017-06-27 16:43:17 -07:00
|
|
|
# Cxx17 tests
|
|
|
|
[ run for_each_n_test.cpp unit_test_framework : : : : for_each_n_test ]
|
|
|
|
[ run reduce_test.cpp unit_test_framework : : : : reduce_test ]
|
|
|
|
[ run transform_reduce_test.cpp unit_test_framework : : : : transform_reduce_test ]
|
|
|
|
[ run inclusive_scan_test.cpp unit_test_framework : : : : inclusive_scan_test ]
|
|
|
|
[ run exclusive_scan_test.cpp unit_test_framework : : : : exclusive_scan_test ]
|
|
|
|
[ run transform_inclusive_scan_test.cpp unit_test_framework : : : : transform_inclusive_scan_test ]
|
|
|
|
[ run transform_exclusive_scan_test.cpp unit_test_framework : : : : transform_exclusive_scan_test ]
|
|
|
|
# Maybe GCD and LCM as well
|
|
|
|
|
2012-02-28 23:17:52 +00:00
|
|
|
# Hex tests
|
2013-02-08 17:21:43 +00:00
|
|
|
[ run hex_test1.cpp unit_test_framework : : : : hex_test1 ]
|
|
|
|
[ run hex_test2.cpp unit_test_framework : : : : hex_test2 ]
|
|
|
|
[ run hex_test3.cpp unit_test_framework : : : : hex_test3 ]
|
|
|
|
[ run hex_test4.cpp unit_test_framework : : : : hex_test4 ]
|
2018-10-30 15:41:36 +00:00
|
|
|
[ run mclow.cpp unit_test_framework : : : : mclow ]
|
2013-01-22 00:44:53 +00:00
|
|
|
[ compile-fail hex_fail1.cpp ]
|
2012-07-09 17:31:20 +00:00
|
|
|
|
2013-01-22 00:44:53 +00:00
|
|
|
# Gather tests
|
2013-02-08 17:21:43 +00:00
|
|
|
[ run gather_test1.cpp unit_test_framework : : : : gather_test1 ]
|
2013-01-22 00:44:53 +00:00
|
|
|
[ compile-fail gather_fail1.cpp ]
|
2013-02-08 17:21:43 +00:00
|
|
|
|
2015-09-28 10:28:05 -07:00
|
|
|
# SortSubrange tests
|
2015-10-01 11:59:31 -07:00
|
|
|
[ run sort_subrange_test.cpp unit_test_framework : : : : sort_subrange_test ]
|
|
|
|
[ run partition_subrange_test.cpp unit_test_framework : : : : partition_subrange_test ]
|
2015-09-28 10:28:05 -07:00
|
|
|
|
2016-07-06 11:42:18 +03:00
|
|
|
# Is_palindrome tests
|
|
|
|
[ run is_palindrome_test.cpp unit_test_framework : : : : is_palindrome_test ]
|
2017-06-27 16:43:17 -07:00
|
|
|
|
2017-02-14 15:59:07 +03:00
|
|
|
# Is_partitioned_until tests
|
|
|
|
[ run is_partitioned_until_test.cpp unit_test_framework : : : : is_partitioned_until_test ]
|
2024-07-27 10:28:38 -05:00
|
|
|
|
2017-05-19 18:50:03 -06:00
|
|
|
# Apply_permutation tests
|
2018-05-10 12:32:09 -05:00
|
|
|
[ run apply_permutation_test.cpp unit_test_framework : : : : apply_permutation_test ]
|
|
|
|
# Find tests
|
|
|
|
[ run find_not_test.cpp unit_test_framework : : : : find_not_test ]
|
2018-05-10 13:22:53 -05:00
|
|
|
[ run find_backward_test.cpp unit_test_framework : : : : find_backward_test ]
|
2012-01-09 17:21:04 +00:00
|
|
|
;
|
|
|
|
}
|
|
|
|
|