Boost logo

Boost Testing :

Subject: Re: [Boost-testing] [test] Re: Develop branch test runners crashing
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2015-06-23 14:41:27


Rene Rivera <grafikrobot <at> gmail.com> writes:

Hmmm... This works for me:

rule docs-example-as-test ( test-file )
{
    test-name-rule = [ MATCH \\.\\./doc/examples/(.*)\\.(.*)\\.cpp : $(test-
file) ] ;

    return [ boost.test-self-test $(test-name-rule[2]) : ../doc/examples :
doc_$(test-name-rule[1]) : included : : $(test-file) ] ;
}

test-suite "docs-examples-ts"
:
  [ sequence.transform docs-example-as-test : [ glob ../doc/examples/*.cpp ]
]
;

Obviously MATCH does not work correctly, since test-file path looks
differently. How do I make it more robust?

Gennadiy


Boost-testing list run by mbergal at meta-comm.com