VirtualBox

Ignore:
Timestamp:
May 20, 2021 4:33:56 PM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: More code for the audio test execution service (ATS), client side. bugref:10008

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/Makefile.kmk

    r89177 r89204  
    6767        $(VKAT_PATH_AUDIO)/DrvHostAudioValidationKit.cpp \
    6868        $(VKAT_PATH_AUDIO)/AudioTestService.cpp \
     69        $(VKAT_PATH_AUDIO)/AudioTestServiceClient.cpp \
    6970        $(VKAT_PATH_AUDIO)/AudioTestServiceProtocol.cpp \
    7071        $(VKAT_PATH_AUDIO)/AudioTestServiceTcp.cpp
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r89177 r89204  
    6666#include "../../../Devices/Audio/AudioTest.h"
    6767#include "../../../Devices/Audio/AudioTestService.h"
     68#include "../../../Devices/Audio/AudioTestServiceClient.h"
    6869#include "VBoxDD.h"
    6970
     
    24832484
    24842485/**
     2486 * Tests the Audio Test Service (ATS).
     2487 *
     2488 * @returns VBox status code.
     2489 */
     2490static int audioTestDoSelftestSvc(void)
     2491{
     2492    int rc = AudioTestSvcInit();
     2493    if (RT_SUCCESS(rc))
     2494    {
     2495        if (RT_SUCCESS(rc))
     2496        {
     2497            rc = AudioTestSvcStart();
     2498            if (RT_SUCCESS(rc))
     2499            {
     2500                ATSCLIENT Conn;
     2501                rc = AudioTestSvcClientConnect(&Conn);
     2502                if (RT_SUCCESS(rc))
     2503                {
     2504                    rc = AudioTestSvcClientClose(&Conn);
     2505                }
     2506            }
     2507        }
     2508    }
     2509
     2510    return rc;
     2511}
     2512
     2513/**
    24852514 * Main function for performing the self-tests.
    24862515 *
     
    24892518static int audioTestDoSelftest(void)
    24902519{
    2491     int rc = atsInit();
    2492     if (RT_SUCCESS(rc))
    2493     {
    2494         if (RT_SUCCESS(rc))
    2495             rc = atsStart();
    2496     }
     2520    int rc = audioTestDoSelftestSvc();
     2521    if (RT_FAILURE(rc))
     2522        RTTestFailed(g_hTest, "Self-test failed with: %Rrc", rc);
    24972523
    24982524    return rc;
     
    25472573    }
    25482574
    2549     rc = audioTestDoSelftest();
    2550 
    2551     return RT_SUCCESS(rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
     2575    audioTestDoSelftest();
     2576        /*
     2577     * Print summary and exit.
     2578     */
     2579    return RTTestSummaryAndDestroy(g_hTest);
    25522580}
    25532581
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