VirtualBox

Ignore:
Timestamp:
Oct 24, 2022 2:36:36 PM (2 years ago)
Author:
vboxsync
Message:

ValKit/analysis: Added some crude value result analysis into the mix. Improved output a little.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/analysis/analyze.py

    r97267 r97279  
    146146    print(oWrapper.fill('Removes any leaf tests that are without any values or sub-tests.  This is useful when '
    147147                        'only considering values, especially when doing additional value filtering.'));
     148
     149    print('');
     150    print('Analysis options:');
     151    print('  --pct-same-value <float>');
     152    print(oWrapper.fill('The threshold at which the percent difference between two values are considered the same '
     153                        'during analysis.'));
     154    print(oWrapper.initial_indent + 'Default: --pct-same-value 0.10');
    148155
    149156    print('');
     
    307314    fBrief                  = True;
    308315    cPctPrecision           = 2;
     316    rdPctSameValue          = 0.1;
    309317    asTestFilters           = [];
    310318    asTestOutFilters        = [];
     
    362370            iBaseline = int(g_sOptArg);
    363371
     372        elif matchWithValue('--pct-same-value'):
     373            rdPctSameValue = float(g_sOptArg);
     374
    364375        # '--' starts a new collection.  If current one is empty, drop it.
    365376        elif sArg == '--':
     
    426437    # Produce the report.
    427438    #
    428     oTable = reporting.RunTable(iBaseline, fBrief, cPctPrecision);
     439    oTable = reporting.RunTable(iBaseline, fBrief, cPctPrecision, rdPctSameValue);
    429440    oTable.populateFromRuns([oCollection.oDistilled for oCollection in aoCollections],
    430441                            [oCollection.sName      for oCollection in aoCollections]);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette