Opened 14 years ago

Last modified 10 years ago

#950 new enhancement

IZ9: improved testsuite output functions

Reported by: joga Owned by:
Priority: normal Milestone:
Component: testsuite Version: current
Severity: Keywords: framework


[Imported from gridengine issuezilla]

        Issue #:      9               Platform:     All           Reporter: joga (joga)
       Component:     testsuite          OS:        All
     Subcomponent:    framework       Version:      current          CC:    None defined
        Status:       STARTED         Priority:     P3
      Resolution:                    Issue type:    ENHANCEMENT
                                  Target milestone: milestone 1
      Assigned to:    joga (joga)
      QA Contact:     joga
       * Summary:     improved testsuite output functions
   Status whiteboard:

     Issue 9 blocks:
   Votes for issue 9:     Vote for this issue

   Opened: Wed Nov 8 06:57:00 -0700 2006 

Currently, testsuite does output to stdout / or a logfile via
puts $CHECK_OUTPUT <message>
debug_puts <message>

output to mail with
add_proc_error <procedure> <level> <message>

We should have some more fine grained logging, similar to the logging in
Gridengine, or the logging used in Java components like ARCo.
It should replace the puts and debug_puts, as well as the add_proc_error.

functions could be
ts_puts <level> <message>
where <level> = "critical", "error", "warning", "info", "fine", "finer", ...

Utility functions
ts_critical, ts_error, ...

Commandline option and testsuite menu item to set the output level.
Commandline option and testsuite menu item to set mail sending behaviour.

The level should have impact on whether / how testsuite will proceed:
- after a critical error: break the current test, cleanup, [reinstall]
- after an error: finish the current runlevel, cleanup, [reinstall]
- after a warning: continue
- no action for info, fine, ...

mail sending behaviour:
Currently a mail is sent for every add_proc_error and after a check finished.

Better might be:
- Make sending mail after ts_puts optional, and dependent on level.
- Send a summary mail after each check, containing all messages up to a
certain level.
- Write all output to file(s), send a summary file after each check containing a
link to the file.
- Write all output to file(s), send a summary after the complete testsuite run,
or by menu item, containing links to all tests run so far.


To be specified in detail.

   ------- Additional comments from joga Mon Jan 7 08:41:58 -0700 2008 -------
I am working on it.

   ------- Additional comments from joga Fri Jan 18 01:32:59 -0700 2008 -------
Framework checked in, see also

Modifying all checks to actually use the logging framework is still an ongoing

Change History (0)

Note: See TracTickets for help on using tickets.