VirtualBox

Changeset 89113 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 17, 2021 4:39:12 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144454
Message:

Audio/ValKit: Added an early Validation Kit test driver for invoking the AudioTest binary on guests. Needs manual testing first [SCM fix]. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r89112 r89113  
    44"""
    55AudioTest test driver which invokes the AudioTest (VKAT) binary to
    6 perform the actual audio tests. 
     6perform the actual audio tests.
    77
    88The generated test set archive on the guest will be downloaded by TXS
     
    5050# pylint: disable=unnecessary-semicolon
    5151
    52 class tdAudioTest(vbox.TestDriver):                             
     52class tdAudioTest(vbox.TestDriver):
    5353
    5454    def __init__(self):
     
    8383        if not fSkip:
    8484            reporter.testStart('Waiting for TXS');
    85             sPathAutoTestExe = '${CDROM}/vboxvalidationkit/${OS/ARCH}/AudioTest${EXESUFF}';       
     85            sPathAutoTestExe = '${CDROM}/vboxvalidationkit/${OS/ARCH}/AudioTest${EXESUFF}';
    8686            oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName,
    8787                                                                    fCdWait = True,
     
    9191            if oSession is not None and oTxsSession is not None:
    9292                self.addTask(oTxsSession);
    93                
     93
    9494                sPathTemp      = self.getGuestTempDir(oTestVm);
    9595                sPathAudioOut  = oTestVm.pathJoin(sPathTemp, 'vkat-out');
    96                 sPathAudioTemp = oTestVm.pathJoin(sPathTemp, 'vkat-temp');         
     96                sPathAudioTemp = oTestVm.pathJoin(sPathTemp, 'vkat-temp');
    9797                reporter.log("Audio test temp path is '%s'" % (sPathAudioOut));
    98                 reporter.log("Audio test output path is '%s'" % (sPathAudioTemp)); 
     98                reporter.log("Audio test output path is '%s'" % (sPathAudioTemp));
    9999                sTag           = uuid.uuid4();
    100100                reporter.log("Audio test tag is %s'" % (sTag));
     
    106106                                       sPathAutoTestExe, '-vvv', 'test', '--tag ' + sTag,
    107107                                       '--tempdir ' + sPathAudioTemp, '--outdir ' + sPathAudioOut));
    108                 reporter.testDone()                                     
    109                
     108                reporter.testDone()
     109
    110110                if fRc:
    111111                    sFileAudioTestArchive = oTestVm.pathJoin(sPathTemp, 'vkat-%s.tar.gz' % (sTag));
     
    122122            return fRc;
    123123
    124         reporter.log('Audio testing skipped, not implemented/available for that OS yet.');           
     124        reporter.log('Audio testing skipped, not implemented/available for that OS yet.');
    125125        return True;
    126126
Note: See TracChangeset for help on using the changeset viewer.

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