diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-08-29 09:56:44 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-08-29 09:56:44 -0400 | 
| commit | d5c9b7b8e5ea81ae6f3d7ca7f67d527c2f7e5ef4 (patch) | |
| tree | 5c1021b08f96933609d7965bf1f0274ce1657fab | |
| parent | 1e8c5b7ebf595b81cae5a6dbf8ead7828aa7b788 (diff) | |
fix header display for diff report
| -rwxr-xr-x | scripts/gpu_table_tester | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/scripts/gpu_table_tester b/scripts/gpu_table_tester index 6989e6f968..4ce08e3005 100755 --- a/scripts/gpu_table_tester +++ b/scripts/gpu_table_tester @@ -195,30 +195,27 @@ GPU String  ------------------------------------------------------------------------------------------------------   ----------- -----  -----  ------  ------------------------------------  .  format STDOUT = -@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...   @<<<<<<<<<<   @>    @>     @<<<<  @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... +@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<   @<<<<<<<<<<   @>    @>     @<<<<  @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...  $_, $Supported{$RecognizedBy{$_}},$Class{$RecognizedBy{$_}},$StatsBased{$RecognizedBy{$_}},$ExpectedOpenGL{$RecognizedBy{$_}},$Name{$RecognizedBy{$_}}  . -my $ReportLineTemplate = "A102xxxA12xxxA2xxxxA2xxxxA5A*"; # MUST match the format STDOUT above +my $ReportLineTemplate = "A102xxxA12xxxA2xxxxA2xxxxA5A*"; # Used to read a previous report - MUST match the format STDOUT above + +my ( $oldSupported, $oldClass, $newSupported, $newClass );  format DIFF_TOP =                                                                                                           ------------- OLD -------------  ----------- NEW --------------------  GPU String                                                                                               Supported?  Class Stats OpenGL   Supported?  Class Stats OpenGL  Line  ------------------------------------------------------------------------------------------------------   ----------- ----- ----- ------   ----------- ----- ----- ------ ----- -.                                                                                                                                              - -my ( $oldSupported, $oldClass, $newSupported, $newClass ); - +.  format DIFF =                                                                                                                                  -@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...   @<<<<<<<<<<   @>    @>  @<<<<    @<<<<<<<<<<    @>   @>  @<<<<  @>>>> -$_,                                    $oldSupported, $oldClass, $oldStatsBased, $oldExpectedOpenGL, $newSupported, $newClass, $newStatsBased, $newExpectedOpenGL, $newRecognizedLine +@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<   @<<<<<<<<<<   @>    @>  @<<<<    @<<<<<<<<<<    @>   @>  @<<<<  @>>>> +$_, $oldSupported, $oldClass, $oldStatsBased, $oldExpectedOpenGL, $newSupported, $newClass, $newStatsBased, $newExpectedOpenGL, $newRecognizedLine  .  if ( ! $Diff )  { -    ## Print results.  -    ## For each input, show supported or unsupported, the class, and the recognizer name - +    ## Print results of testing each input line and how it was recognized.       foreach ( sort keys %RecognizedBy )      {          write if ! $UnMatchedOnly || $Name{$RecognizedBy{$_}} eq $NoMatch; @@ -227,6 +224,7 @@ if ( ! $Diff )  }  else  { +    ## Print a comparison of how the recognition this time compared to the results from the $Diff file      open OLD, "<$Diff"          || die "Failed to open --diff file '$Diff'\n\t$!\n";      my $discard = 2; @@ -248,8 +246,8 @@ else      }      close OLD; -    $FORMAT_TOP_NAME = DIFF_TOP; -    $FORMAT_NAME = DIFF; +    $FORMAT_TOP_NAME = 'DIFF_TOP'; +    $FORMAT_NAME = 'DIFF';      foreach ( sort keys %RecognizedBy )      {          $newSupported = $Supported{$RecognizedBy{$_}} || $NoMatch; @@ -265,6 +263,7 @@ else              $oldStatsBased = '-';              $oldExpectedOpenGL = '-';              write; +            $-++; # suppresses pagination          }          else          { @@ -280,9 +279,10 @@ else                  )              {                  write; +                $-++; # suppresses pagination              }          } -        $-++; # suppresses pagination +      }  } | 
