[29] | 1 | # (C) Copyright William E. Kempf 2001. |
---|
| 2 | # Distributed under the Boost Software License, Version 1.0. (See accompanying |
---|
| 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
| 4 | # |
---|
| 5 | # Boost.Threads test Jamfile |
---|
| 6 | # |
---|
| 7 | # Additional configuration variables used: |
---|
| 8 | # 1. PTW32 may be used on Win32 platforms to specify that the pthreads-win32 |
---|
| 9 | # library should be used instead of "native" threads. This feature is |
---|
| 10 | # mostly used for testing and it's generally recommended you use the |
---|
| 11 | # native threading libraries instead. PTW32 should be set to be a list |
---|
| 12 | # of two strings, the first specifying the installation path of the |
---|
| 13 | # pthreads-win32 library and the second specifying which library |
---|
| 14 | # variant to link against (see the pthreads-win32 documentation). |
---|
| 15 | # Example: jam -sPTW32="c:\pthreads-win32 pthreadVCE.lib" |
---|
| 16 | |
---|
| 17 | # bring in rules for testing |
---|
| 18 | import testing ; |
---|
| 19 | |
---|
| 20 | project |
---|
| 21 | : requirements <library>/boost/test//boost_unit_test_framework/<link>static |
---|
| 22 | <threading>multi |
---|
| 23 | ; |
---|
| 24 | |
---|
| 25 | rule thread-run ( sources ) |
---|
| 26 | { |
---|
| 27 | return |
---|
| 28 | [ run $(sources) ../build//boost_thread ] |
---|
| 29 | [ run $(sources) ../src/tss_null.cpp ../build//boost_thread/<link>static |
---|
| 30 | : : : : $(sources[1]:B)_lib ] |
---|
| 31 | ; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | { |
---|
| 35 | test-suite "threads" |
---|
| 36 | : [ thread-run test_thread.cpp ] |
---|
| 37 | [ thread-run test_mutex.cpp ] |
---|
| 38 | [ thread-run test_condition.cpp ] |
---|
| 39 | [ thread-run test_tss.cpp ] |
---|
| 40 | [ thread-run test_once.cpp ] |
---|
| 41 | [ thread-run test_xtime.cpp ] |
---|
| 42 | [ thread-run test_barrier.cpp ] |
---|
| 43 | # [ thread-run test_read_write_mutex.cpp ] |
---|
| 44 | ; |
---|
| 45 | } |
---|