Blame view

3rdparty/boost_1_81_0/libs/logic/test/Jamfile.v2 2.02 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
  # Tribool library
  
  # Copyright (C) 2002-2003 Douglas Gregor
  
  # Use, modification and distribution is subject to 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) 
  
  # For more information, see http://www.boost.org/
  
  import path ;
  import os ;
  import regex ;
  import testing ;
  
  local self = logic ;
  
  rule test-expected-failures
  {
      local all_rules = ;
      local file ;
      local tests_path = [ path.make $(BOOST_ROOT)/libs/$(self)/test/compile-fail ] ;
      for file in [ path.glob-tree $(tests_path) : *.cpp ]
      {
          local rel_file = [ path.relative-to $(tests_path) $(file) ] ;
          local test_name = [ regex.replace [ regex.replace $(rel_file) "/" "-" ] ".cpp" "" ] ;
          local decl_test_name = cf-$(test_name) ;
          # ECHO $(rel_file) ;
          all_rules += [ compile-fail $(file) : : $(decl_test_name) ] ;
      }
  
      # ECHO All rules: $(all_rules) ;
      return $(all_rules) ;
  }
  
  rule test-header-isolation
  {
      local all_rules = ;
      local file ;
      local headers_path = [ path.make $(BOOST_ROOT)/libs/$(self)/include ] ;
      for file in [ path.glob-tree $(headers_path) : *.hpp ]
      {
          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 $(rel_file) "/" "-" ] ;
          local decl_test_name = ~hdr-decl-$(test_name) ;
          # ECHO $(rel_file) ;
          all_rules += [ compile compile/decl_header.cpp : <define>"BOOST_TEST_HEADER=$(rel_file)" <dependency>$(file) : $(decl_test_name) ] ;
      }
  
      # ECHO All rules: $(all_rules) ;
      return $(all_rules) ;
  }
  
    test-suite logic  : 
      [ test-expected-failures ]
      [ test-header-isolation ]
      [ run tribool_test.cpp ]
      [ run tribool_rename_test.cpp ]
      [ run tribool_io_test.cpp ]
     ;