1
# (C) Copyright William E. Kempf 2001.
2
# (C) Copyright 2007 Anthony Williams.
3
# Distributed under the Boost Software License, Version 1.0. (See accompanying
4
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
# Boost.Threads test Jamfile
8
# Additional configuration variables used:
9
# 1. PTW32 may be used on Win32 platforms to specify that the pthreads-win32
10
# library should be used instead of "native" threads. This feature is
11
# mostly used for testing and it's generally recommended you use the
12
# native threading libraries instead. PTW32 should be set to be a list
13
# of two strings, the first specifying the installation path of the
14
# pthreads-win32 library and the second specifying which library
15
# variant to link against (see the pthreads-win32 documentation).
16
# Example: jam -sPTW32="c:\pthreads-win32 pthreadVCE.lib"
18
# bring in rules for testing
22
: requirements <library>/boost/test//boost_unit_test_framework/<link>static
26
rule thread-run ( sources )
29
[ run $(sources) ../build//boost_thread ]
30
[ run $(sources) ../src/tss_null.cpp ../build//boost_thread/<link>static
31
: : : : $(sources[1]:B)_lib ]
37
: [ thread-run test_thread.cpp ]
38
[ thread-run test_thread_id.cpp ]
39
[ thread-run test_hardware_concurrency.cpp ]
40
[ thread-run test_thread_move.cpp ]
41
[ thread-run test_thread_return_local.cpp ]
42
[ thread-run test_thread_move_return.cpp ]
43
[ thread-run test_thread_launching.cpp ]
44
[ thread-run test_thread_mf.cpp ]
45
[ thread-run test_thread_exit.cpp ]
46
[ thread-run test_move_function.cpp ]
47
[ thread-run test_mutex.cpp ]
48
[ thread-run test_condition_notify_one.cpp ]
49
[ thread-run test_condition_timed_wait_times_out.cpp ]
50
[ thread-run test_condition_notify_all.cpp ]
51
[ thread-run test_condition.cpp ]
52
[ thread-run test_tss.cpp ]
53
[ thread-run test_once.cpp ]
54
[ thread-run test_xtime.cpp ]
55
[ thread-run test_barrier.cpp ]
56
[ thread-run test_shared_mutex.cpp ]
57
[ thread-run test_shared_mutex_part_2.cpp ]
58
[ thread-run test_shared_mutex_timed_locks.cpp ]
59
[ thread-run test_lock_concept.cpp ]
60
[ thread-run test_generic_locks.cpp ]
61
[ thread-run test_futures.cpp ]
62
[ compile-fail no_implicit_move_from_lvalue_thread.cpp ]
63
[ compile-fail no_implicit_assign_from_lvalue_thread.cpp ]