Просмотр исходного кода

Add --no-check-libs option to `b2 status`

Peter Dimov 8 лет назад
Родитель
Сommit
ade5961144
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      status/Jamfile.v2

+ 5 - 1
status/Jamfile.v2

@@ -15,6 +15,9 @@
 # --check-libs-only
 # --check-libs-only
 #   Only runs the library conformance tests.
 #   Only runs the library conformance tests.
 #
 #
+# --no-check-libs
+#   Do not run the library conformance tests.
+#
 # --limit-tests, or --include-tests
 # --limit-tests, or --include-tests
 #   Only runs the tests for whom the name matches the regex.
 #   Only runs the tests for whom the name matches the regex.
 #   The value for the argument is a comma separated list of simple
 #   The value for the argument is a comma separated list of simple
@@ -58,6 +61,7 @@ import feature ;
 import numbers ;
 import numbers ;
 
 
 local check-libs-only = [ MATCH "^--(check-libs-only)" : [ modules.peek : ARGV ] ] ;
 local check-libs-only = [ MATCH "^--(check-libs-only)" : [ modules.peek : ARGV ] ] ;
+local no-check-libs = [ MATCH "^--(no-check-libs)$" : [ modules.peek : ARGV ] ] ;
 local check-libs-only-targets = ;
 local check-libs-only-targets = ;
 local libraries = ;
 local libraries = ;
 
 
@@ -112,7 +116,7 @@ local rule run-tests ( root : tests * )
             {
             {
                 use-project /boost/$(test) : ../$(root)/$(test) ;
                 use-project /boost/$(test) : ../$(root)/$(test) ;
             }
             }
-            if $(root) = libs && ( ! ( $(library) in $(libraries) ) )
+            if $(root) = libs && ! $(no-check-libs) && ( ! ( $(library) in $(libraries) ) )
             {
             {
                 libraries += $(library) ;
                 libraries += $(library) ;
                 local test_module = [ project.find ../$(root)/$(test) : $(location) ] ;
                 local test_module = [ project.find ../$(root)/$(test) : $(location) ] ;

粤ICP备19079148号