Boost logo

Boost :

Subject: [boost] [build][testing] Auto-generated tests not present in reports
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-03-24 12:16:25


Hi,

Recently I added auto-generation of compile tests which basically check that
every Boost.Log public header is self-contained (i.e. can be included on its
own, does not have any missing includes etc.) This is done in the
test/Jamfile.v2 as follows:

rule test_all
{
   local all_rules = ;
   local file ;
   local headers_path = [ path.make $(BOOST_ROOT)/libs/log/include/boost/log ]
;
   for file in [ path.glob-tree $(headers_path) : *.hpp ]
   {
      local rel_file = [ path.relative-to $(headers_path) $(file) ] ;
      if ! [ MATCH "detail/(.*)" : $(rel_file) ]
      {
          #ECHO $(rel_file) ;
          all_rules += [ compile compile/self_contained_header.cpp :
<define>"BOOST_LOG_TEST_HEADER=$(rel_file)" :
self_contained_header/$(rel_file) ] ;
      }
   }

   ... other test targets are also generated here

   return $(all_rules) ;
}

This rule also generates targets for other tests, including compile tests.

It works locally, I can see the generated tests for all headers being
compiled. However, I made this change quite some time ago but still I don't
see these tests in the test reports table. I can see other tests which are
generated by the same test_all rule, so it works. What could be the problem?
Any ideas?

Thanks.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk