Blame view

3rdparty/boost_1_81_0/libs/heap/test/Jamfile.v2 1.4 KB
73ef4ff3   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  # (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 ;
  import path ;
  import regex ;
  
  rule test_all
  {
      local all_rules ;
      local file ;
      local headers_path = [ path.make $(BOOST_ROOT)/libs/heap/include/boost/heap ] ;
      for file in [ path.glob-tree $(headers_path) : *.hpp : detail ]
      {
          local rel_file = [ path.relative-to $(headers_path) $(file) ] ;
          # Note: The test name starts with '~' in order to group these tests in the test report table, preferably at the end.
          #       All '/' are replaced with '-' because apparently test scripts have a problem with test names containing slashes.
          local test_name = [ regex.replace ~hdr/$(rel_file) "/" "-" ] ;
          #ECHO $(rel_file) ;
          all_rules += [ compile self_contained_header.cpp : <define>"BOOST_HEAP_TEST_HEADER=$(rel_file)" <dependency>$(file) : $(test_name) ] ;
      }
  
     for file in [ glob *.cpp ]
     {
          if [ path.basename $(file) ] != "self_contained_header.cpp"
          {
              all_rules += [ run $(file)
                  :  # additional args
                  :  # test-files
                  : <library>/boost/test//boost_unit_test_framework # requirements
              ] ;
          }
     }
  
      return $(all_rules) ;
  }
  
  test-suite heap : [ test_all ] : <threading>multi ;