- Timestamp:
- Mar 18, 2011, 9:42:44 AM (14 years ago)
- Location:
- trunk/tester/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tester/scripts/Makefile.in
r2136 r2142 19 19 FILES = \ 20 20 $(srcdir)/main.tcl \ 21 $(srcdir)/legend.tcl \ 21 22 $(srcdir)/objview.tcl \ 22 23 $(srcdir)/resultspage.tcl \ 24 $(srcdir)/runview.tcl \ 23 25 $(srcdir)/statuslist.tcl \ 24 26 $(srcdir)/stringdiffs.tcl \ -
trunk/tester/scripts/main.tcl
r2139 r2142 269 269 -title1 "Expected this:" -title2 "Got this:" 270 270 pack $win.diffs -expand yes -fill both -padx 4 -pady 4 271 272 # viewer for showing string info if all else fails (e.g. unkobj errors) 273 Rappture::Scroller .testdiffs.body.info \ 274 -xscrollmode auto -yscrollmode auto 275 pack .testdiffs.body.info -expand yes -fill both -padx 10 -pady {0 10} 276 text .testdiffs.body.info.text -width 10 -height 1 -wrap char 277 .testdiffs.body.info contents .testdiffs.body.info.text 271 278 272 279 # plug the proper diff colors into the legend area … … 428 435 } 429 436 } 437 unkobj { 438 set icon [Rappture::icon warn16] 439 set title "Unsupported object type" 440 set desc "Test contains an object type that is not yet supported" 441 set help "The Rappture Regression Tester is still in beta. Some object types supported by the Rappture runtime environment are not yet supported by the tester. These warnings will go away as the Rappture Regression Tester improves and support for all object types is put into place." 442 } 430 443 default { 431 error "don't know how to handle difference \"$ what\""444 error "don't know how to handle difference \"$difftype\"" 432 445 } 433 446 } … … 701 714 set legsettings {2 disabled 3 disabled 4 disabled} 702 715 } 716 "unkobj" { 717 set win .testdiffs.body.info 718 $win.text configure -state normal 719 $win.text delete 1.0 end 720 $win.text insert end "The following object type is not yet supported within the Rappture Regression Tester:\n\n[$diff(-testobj) getTestInfo xml $diff(-path)]" 721 $win.text configure -state disabled 722 set legsettings {2 disabled 3 disabled 4 disabled} 723 } 703 724 } 704 725 if {[pack slaves .testdiffs.body] ne $win} { -
trunk/tester/scripts/test.tcl
r2139 r2142 164 164 if {[$_testobj get output.status] ne "ok"} { 165 165 # expected test to fail, but it didn't 166 set idiffs [_computeDiffs [$_toolobj xml ] $_runobj -in input]166 set idiffs [_computeDiffs [$_toolobj xml object] $_runobj -in input] 167 167 set odiffs [_computeDiffs $_testobj $_runobj -what run] 168 168 set _diffs [concat $idiffs $odiffs] 169 169 _setResult "Fail" 170 170 } else { 171 set idiffs [_computeDiffs [$_toolobj xml ] $_testobj -in input]171 set idiffs [_computeDiffs [$_toolobj xml object] $_testobj -in input] 172 172 set odiffs [_computeDiffs $_testobj $_runobj -in output] 173 173 set _diffs [concat $idiffs $odiffs] … … 187 187 _setResult "Pass" 188 188 } else { 189 set idiffs [_computeDiffs [$_toolobj xml ] $_runobj -in input]189 set idiffs [_computeDiffs [$_toolobj xml object] $_runobj -in input] 190 190 set odiffs [_computeDiffs $_testobj $_runobj -what run] 191 191 set _diffs [concat $idiffs $odiffs] … … 200 200 _setResult "Pass" 201 201 } else { 202 set idiffs [_computeDiffs [$_toolobj xml ] $_runobj -in input]202 set idiffs [_computeDiffs [$_toolobj xml object] $_runobj -in input] 203 203 set odiffs [_computeDiffs $_testobj $_runobj -what run] 204 204 set _diffs [concat $idiffs $odiffs] … … 271 271 if {[string match input.* $path]} { 272 272 # if we're matching input, compare the original XML vs. the test 273 return [_computeDiffs [$_toolobj xml ] $_testobj -in $path -detail max]273 return [_computeDiffs [$_toolobj xml object] $_testobj -in $path -detail max] 274 274 } 275 275 … … 426 426 if {$type1 eq $type2} { 427 427 set same yes 428 set alist [Rappture::objects::get $type1 -attributes] 428 if {[catch {Rappture::objects::get $type1 -attributes} alist]} { 429 # oops! unknown object type 430 lappend rlist [linsert $details 0 -what unkobj] 431 set alist "" 432 } 429 433 foreach rec $alist { 430 434 array set attr [lrange $rec 1 end]
Note: See TracChangeset
for help on using the changeset viewer.