Files
lockfree/test/Jamfile.v2
2024-08-19 09:04:16 +08:00

47 lines
1.2 KiB
Plaintext

# (C) Copyright 2010: Tim Blechmann
# Distributed under 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)
import testing ;
lib boost_chrono ;
lib boost_interprocess ;
lib boost_system ;
lib boost_thread ;
lib boost_unit_test_framework ;
project
: requirements
<library>/boost/lockfree//boost_lockfree
<library>/boost/test//boost_unit_test_framework
<library>/boost/thread//boost_thread
<library>/boost/interprocess//boost_interprocess
;
rule test_all
{
local all_rules = ;
for local fileb in [ glob *.cpp ]
{
all_rules += [ run $(fileb)
: # additional args
: # test-files
: # requirements
<toolset>acc:<linkflags>-lrt
<toolset>acc-pa_risc:<linkflags>-lrt
<target-os>windows,<toolset>gcc:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<host-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
<host-os>linux,<toolset>clang:<linkflags>"-latomic"
<threading>multi
<link>static
<define>BOOST_TEST_NO_OLD_TOOLS
] ;
}
return $(all_rules) ;
}
test-suite lockfree : [ test_all r ] : <threading>multi ;