• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_chrono ;
8lib boost_interprocess ;
9lib boost_system ;
10lib boost_thread ;
11lib boost_unit_test_framework ;
12
13project
14    : source-location .
15    : requirements
16        <library>../../test/build//boost_unit_test_framework
17        <library>../../atomic/build//boost_atomic
18    ;
19
20
21rule test_all
22{
23   local all_rules = ;
24
25   for local fileb in [ glob *.cpp ]
26   {
27      all_rules += [ run $(fileb)
28      : # additional args
29      : # test-files
30      : # requirements
31        <toolset>acc:<linkflags>-lrt
32        <toolset>acc-pa_risc:<linkflags>-lrt
33        <target-os>windows,<toolset>gcc:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
34        <host-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
35        <host-os>linux,<toolset>clang:<linkflags>"-latomic"
36        <library>../../thread/build//boost_thread/
37        <threading>multi
38        <link>static
39      ] ;
40   }
41
42    return $(all_rules) ;
43}
44
45test-suite lockfree : [ test_all r ] : <threading>multi ;
46