ATF-log archive

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

#44: Remove fancy formatting from test programs



#44: Remove fancy formatting from test programs
-------------------------+--------------------------------------------------
 Reporter:  jmmv         |       Owner:  jmmv
     Type:  enhancement  |      Status:  new 
 Priority:  minor        |   Milestone:  0.10
Component:  MISC         |     Version:      
 Keywords:               |  
-------------------------+--------------------------------------------------
 Test programs currently use the "fancy" formatting module (atf-c/ui) to
 format their usage message in a way that fits on screen.  This complicates
 the code a huge amount as each test program needs to have access to the
 same code (regardless of its implementation language!).  For example, the
 implementation of the ui module is now done in C so that C tests can
 access it and is exposed through the atf-format tool to shell tests.

 Aside from making the code more complex, this makes the barrier of entry
 for new bindings much higher, as they should try to mimic this behavior.

 Additionally, the usefulness of the usage message of test programs is
 arguable.  The purpose of this ticket is to:

    * Make test programs NOT show a usage message.  Just refer to the atf-
 test-program(1) manual page.  This is actually more consistent with BSD-
 style tools and moves the documentation to a single place.  Other tools
 should continue to show usage messages for now though.
    * Move the implementation of the ui module from atf-c to atf-c++
 because only C++ tools need to use it.
    * Remove the atf-format tool.

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


Home | Main Index | Thread Index | Old Index