VirtualBox

Ignore:
Timestamp:
Jun 14, 2021 4:05:31 PM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Test and self-test modes now implicitly test the supplied test sets (unless skipped with --no-verify). ​bugref:10008

Location:
trunk/src/VBox/ValidationKit/utils/audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r89685 r89686  
    6161*********************************************************************************************************************************/
    6262static int audioTestCombineParms(PAUDIOTESTPARMS pBaseParms, PAUDIOTESTPARMS pOverrideParms);
     63static int audioVerifyOne(const char *pszPathSetA, const char *pszPathSetB);
    6364
    6465
     
    119120    VKAT_TEST_OPT_HOST_ATS_PORT,
    120121    VKAT_TEST_OPT_MODE,
     122    VKAT_TEST_OPT_NO_VERIFY,
    121123    VKAT_TEST_OPT_OUTDIR,
    122124    VKAT_TEST_OPT_PAUSE,
     
    158160    { "--exclude",           'e',                          RTGETOPT_REQ_UINT32  },
    159161    { "--exclude-all",       'a',                          RTGETOPT_REQ_NOTHING },
    160     { "--mode",              VKAT_TEST_OPT_MODE,           RTGETOPT_REQ_STRING  },
    161162    { "--guest-ats-address", VKAT_TEST_OPT_GUEST_ATS_ADDR, RTGETOPT_REQ_STRING  },
    162163    { "--guest-ats-port",    VKAT_TEST_OPT_GUEST_ATS_PORT, RTGETOPT_REQ_UINT32  },
     
    172173    { "--pcm-hz",            VKAT_TEST_OPT_PCM_HZ,         RTGETOPT_REQ_UINT16  },
    173174    { "--pcm-signed",        VKAT_TEST_OPT_PCM_SIGNED,     RTGETOPT_REQ_BOOL    },
     175    { "--mode",              VKAT_TEST_OPT_MODE,           RTGETOPT_REQ_STRING  },
     176    { "--no-verify",         VKAT_TEST_OPT_NO_VERIFY,      RTGETOPT_REQ_NOTHING },
    174177    { "--tag",               VKAT_TEST_OPT_TAG,            RTGETOPT_REQ_STRING  },
    175178    { "--tempdir",           VKAT_TEST_OPT_TEMPDIR,        RTGETOPT_REQ_STRING  },
     
    568571                    rc = VERR_BUFFER_OVERFLOW;
    569572
    570                 if (RT_SUCCESS(rc))
     573                if (   RT_SUCCESS(rc)
     574                    && !pTstEnv->fSkipVerify)
    571575                {
    572 
     576                    rc = audioVerifyOne(pTstEnv->u.Host.szPathTestSetGuest, pTstEnv->u.Host.szPathTestSetValKit);
    573577                }
     578                else
     579                    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Verification skipped\n");
    574580            }
    575581        }
     
    596602        case VKAT_TEST_OPT_HOST_ATS_PORT:  return "Port of host ATS to connect to [6052].";
    597603        case VKAT_TEST_OPT_MODE:           return "Specifies the mode this program runs at";
     604        case VKAT_TEST_OPT_NO_VERIFY:      return "Skips the verification step.";
    598605        case 'e':                          return "Exclude the given test id from the list";
    599606        case 'a':                          return "Exclude all tests from the list (useful to enable single tests later with --include)";
     
    678685                    return RTMsgErrorExit(RTEXITCODE_SYNTAX, "Test mode (guest / host) already specified");
    679686                TstEnv.enmMode = RTStrICmp(ValueUnion.psz, "guest") == 0 ? AUDIOTESTMODE_GUEST : AUDIOTESTMODE_HOST;
     687                break;
     688
     689            case VKAT_TEST_OPT_NO_VERIFY:
     690                TstEnv.fSkipVerify = true;
    680691                break;
    681692
  • trunk/src/VBox/ValidationKit/utils/audio/vkatInternal.h

    r89685 r89686  
    182182    /** Whether self test mode is active or not. */
    183183    bool                    fSelftest;
     184    /** Whether skip the actual verification or not. */
     185    bool                    fSkipVerify;
    184186    /** Output path for storing the test environment's final test files. */
    185187    char                    szTag[AUDIOTEST_TAG_MAX];
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