1# (C) Copyright 2010: Tim Blechmann
2# Distributed under the Boost Software License, Version 1.0.
3# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5import testing ;
6
7lib boost_unit_test_framework ;
8lib boost_thread ;
9lib boost_system ;
10
11project
12    : source-location .
13    : requirements
14        <hardcode-dll-paths>true
15        <library>../../test/build//boost_test_exec_monitor
16        <library>../../atomic/build//boost_atomic
17    ;
18
19
20rule test_all
21{
22   local all_rules = ;
23
24   for local fileb in [ glob *.cpp ]
25   {
26      all_rules += [ run $(fileb)
27      : # additional args
28      : # test-files
29      : # requirements
30        <toolset>acc:<linkflags>-lrt
31        <toolset>acc-pa_risc:<linkflags>-lrt
32        <target-os>windows,<toolset>gcc:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
33        <host-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
34        <library>../../thread/build//boost_thread/
35        <threading>multi
36      ] ;
37   }
38
39    return $(all_rules) ;
40}
41
42test-suite lockfree : [ test_all r ] : <threading>multi ;
43