Changeset 4127 for trunk/tester


Ignore:
Timestamp:
Jan 16, 2014 10:51:33 AM (10 years ago)
Author:
mmc
Message:

Added a "-auto" option to "rappture -tester" so you can run all tests
without the GUI in the background. This is needed as we try to run
regressions automatically during the contribtool process. In order to
do this, I had to split the Tool object into a "Task" that can run
without the GUI, and the "Tool" that acts as a ControlOwner?. I also
had to support for resource file processing into the generic Rappture
package. As a result, "rappture -tester -auto" can run without an
X window connection.

Added support for "job_protocol mx" in the resources file. If you
specify this, then Rappture will execute "mx cmd arg arg..." to run
each job.

Location:
trunk/tester/scripts
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tester/scripts/Makefile.in

    r3471 r4127  
    1818
    1919FILES           = \
     20                $(srcdir)/auto.tcl \
    2021                $(srcdir)/main.tcl \
    2122                $(srcdir)/legend.tcl \
  • trunk/tester/scripts/main.tcl

    r3177 r4127  
    1717#  USAGE: tester.tcl ?-tool tool.xml? ?-testdir tests?
    1818# ======================================================================
    19 #  AUTHOR: Ben Rafferty, Purdue University
     19#  AUTHORS:  Michael McLennan, Ben Rafferty, Purdue University
    2020#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
    2121#
     
    136136set installdir [file dirname [file normalize $params(-tool)]]
    137137set xmlobj [Rappture::library $params(-tool)]
    138 set ToolObj [Rappture::Tool ::#auto $xmlobj $installdir]
     138set TaskObj [Rappture::Task ::#auto $xmlobj $installdir]
     139
     140# tasks in the tester run quietly and discard results
     141$TaskObj configure -jobstats "" -resultdir ""
     142
    139143set DiffShow ""  ;# used to track which diff objects are being displayed
    140144
     
    296300set testtree [.pw pane 0].tree
    297301foreach file [glob -nocomplain -directory $params(-testdir) *.xml] {
    298     set testobj [Rappture::Tester::Test ::#auto $ToolObj $file]
     302    set testobj [Rappture::Tester::Test ::#auto $TaskObj $file]
    299303    if {[$testobj getTestInfo test.label] eq ""} {
    300304        puts stderr "ERROR:  Missing test label in $file"
Note: See TracChangeset for help on using the changeset viewer.