[test] Re: Develop branch test runners crashing

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[test] Re: Develop branch test runners crashing

Rene Rivera-2


On Tue, Jun 23, 2015 at 8:32 AM, Tom Kent <[hidden email]> wrote:
Sometime between 22:30 and 03:30 last night (pacific time) all the develop tests started crashing on windows and linux. 

The tail of results/bjam.log is:

notice: iostreams: not using bzip2 compression 
notice: iostreams: not using bzip2 compression 
..\libs\test\test\Jamfile.v2:59: in docs-example-as-test
*** argument error
* rule boost.test-self-test ( test-rule : test-suite : test-name : usage-variant ? : pattern_file * : source_files * : extra-libs ? : extra-options ? )
* called with: (  : ../doc/examples :  : included :  : /D:/t08/run/boost_root/libs/test/doc/examples/boost_test_bitwise.run-fail.cpp )
* missing argument test-rule
..\libs\test\test\Jamfile.v2:18:see definition of rule 'boost.test-self-test' being called
(builtin): in sequence.transform
..\libs\test\test\Jamfile.v2:162: in modules.load
D:/t08/run/boost_bb/src/build\project.jam:325: in load-jamfile
D:/t08/run/boost_bb/src/build\project.jam:64: in load
D:/t08/run/boost_bb/src/build\project.jam:145: in project.find
D:/t08/run/boost_bb/src/build\targets.jam:452: in find-really
D:/t08/run/boost_bb/src/build\targets.jam:474: in find
D:/t08/run/boost_bb/src/build\targets.jam:305: in targets-to-build
D:/t08/run/boost_bb/src/build\targets.jam:270: in [hidden email]
D:/t08/run/boost_bb/src\build-system.jam:707: in load
D:\t08\run\boost_bb\src/kernel\modules.jam:295: in import
D:\t08\run\boost_bb\src/kernel/bootstrap.jam:139: in boost-build
D:\t08\run\boost_root\boost-build.jam:17: in module scope

Any thoughts?

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing



--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [test] Re: Develop branch test runners crashing

Gennadiy Rozental-2
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 mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [test] Re: Develop branch test runners crashing

Steven Watanabe-4
AMDG

On 06/23/2015 12:41 PM, Gennadiy Rozental wrote:

> 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?
>

The reason that MATCH doesn't work is that
the paths returned from glob are relative
to the working directory, not the directory
containing the jamfile.  When b2 is run from
status/ this results in paths like
../libs/test/doc/example/*.cpp, which don't
match the pattern you gave.  I would suggest
using path.basename to get the name of
the file without the directory component.

In Christ,
Steven Watanabe

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [test] Re: Develop branch test runners crashing

Gennadiy Rozental-2
Steven Watanabe <watanabesj <at> gmail.com> writes:

> I would suggest
> using path.basename to get the name of
> the file without the directory component.

Thank you. Applied.



_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing