ATF-log archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

#54: atf-run choke on user defined meta-data



#54: atf-run choke on user defined meta-data
------------------------------+---------------------------------------------
 Reporter:  njoly@...         |       Owner:  jmmv
     Type:  defect            |      Status:  new 
 Priority:  minor             |   Milestone:      
Component:  MISC              |     Version:      
 Keywords:                    |  
------------------------------+---------------------------------------------
 atf-run complains about unknown meta-data, for user defined ones.
 In the mean time, the testcase, if run directly, works as expected.

 {{{
 njoly@lanfeust [tmp/atf]> cat Atffile
 Content-Type: application/X-atf-atffile; version="1"

 prop: test-suite = "Dummy"

 tp: t_dummy

 njoly@lanfeust [tmp/atf]> cat t_dummy
 #! /usr/bin/env atf-sh

 atf_test_case dummy
 dummy_head() {
   atf_set "descr" "dummy test"
   atf_set "mymeta" "dummy value"
 }
 dummy_body() {
   atf_pass
 }

 atf_init_test_cases() {
   atf_add_test_case dummy
 }
 njoly@lanfeust [tmp/atf]> ./t_dummy -l
 Content-Type: application/X-atf-tp; version="1"

 ident: dummy
 descr: dummy test
 mymeta: dummy value
 njoly@lanfeust [tmp/atf]> ./t_dummy dummy
 passed
 njoly@lanfeust [tmp/atf]> atf-run | atf-report
 Tests root: /home/njoly/tmp/atf

 t_dummy (1/1): 0 test cases
 t_dummy: BOGUS TEST PROGRAM: Cannot trust its results because of `Invalid
          format for test case list: 5: Unknown property 'mymeta''

 Failed (bogus) test programs:
     t_dummy
 }}}

 According to the atf-test-case(4) man page, it should be allowed:

 NB: This is with -current NetBSD ATF 0.10 version, but this should not
 matters.

-- 
Ticket URL: <http://www.julipedia.org/projects/atf/trac/ticket/54>
Automated Testing Framework <http://www.NetBSD.org/~jmmv/atf/>
Automated Testing Framework


Home | Main Index | Thread Index | Old Index