From patchwork Wed Jul 8 08:17:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sudhir kumar X-Patchwork-Id: 34567 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n688HEWI008145 for ; Wed, 8 Jul 2009 08:17:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754815AbZGHIRN (ORCPT ); Wed, 8 Jul 2009 04:17:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753394AbZGHIRN (ORCPT ); Wed, 8 Jul 2009 04:17:13 -0400 Received: from wf-out-1314.google.com ([209.85.200.171]:1617 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753273AbZGHIRL (ORCPT ); Wed, 8 Jul 2009 04:17:11 -0400 Received: by wf-out-1314.google.com with SMTP id 26so1974360wfd.4 for ; Wed, 08 Jul 2009 01:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=9SCXc30Oy+lexwyt2io19z5uA/7BIrQFJFOy66YvEkw=; b=RKLQyKiAQ3DyZEkDftvBHoPXJbckElp/3+Q1bXlurKgjSv0AS6mTZ6WgF2iLv2ISfx u8mk/Osxl1Ee+eh0q44vXIBl+LdFda4ZWGUomyLrfu9ZzYTxUfzPpp25oe3T4V3HdZlT uN6yl5CUoMoVLttvFTFf0psS/4ycKnayJgcD0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=gwjvKW1XcG6/CxoyMVNH2SvgqoePySOeOmn+TeGF6g0Ty7EHomosJMepHwFgM5YTOx e8C0e3jZ8+xe5BkEQJdkLpt/UKPDmwTJMpnXzHFcF26FMsQi1vegwQJNnrVuOp+veq6o uAC0ys7r1VCerm11aNlHIK938qkD+J/Eozn2k= MIME-Version: 1.0 Received: by 10.142.239.2 with SMTP id m2mr2046998wfh.106.1247041030361; Wed, 08 Jul 2009 01:17:10 -0700 (PDT) Date: Wed, 8 Jul 2009 13:47:10 +0530 Message-ID: Subject: [autotest] [PATCH 1/6] add ebizzy in autotest From: sudhir kumar To: Autotest mailing list Cc: kvm-devel , Lucas Meneghel Rodrigues , Martin Bligh Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This patch adds the wrapper for ebizzy into autotest. here is the link to get a copy of the test tarball. http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809 Please review the patch and provide your comments. Signed-off-by: Sudhir Kumar + cmd = os.path.join(self.srcdir, 'ebizzy') + ' ' + args + utils.system(cmd) Index: autotest/client/tests/ebizzy/control =================================================================== --- /dev/null +++ autotest/client/tests/ebizzy/control @@ -0,0 +1,11 @@ +NAME = "ebizzy" +AUTHOR = "Sudhir Kumar " +TIME = "MEDIUM, VARIABLE" +TEST_CATEGORY = "FUNCTIONAL" +TEST_CLASS = "SYSTEM STRESS" +TEST_TYPE = "CLIENT" +DOC = """ +http://sourceforge.net/project/platformdownload.php?group_id=202378&sel_platform=3809 +""" + +job.run_test('ebizzy', args = '-vv') Index: autotest/client/tests/ebizzy/ebizzy.py =================================================================== --- /dev/null +++ autotest/client/tests/ebizzy/ebizzy.py @@ -0,0 +1,32 @@ +import os +from autotest_lib.client.bin import utils, test +from autotest_lib.client.common_lib import error + +class ebizzy(test.test): + version = 3 + + def initialize(self): + self.job.require_gcc() + + + # http://sourceforge.net/project/downloading.php?group_id=202378&filename=ebizzy-0.3.tar.gz + def setup(self, tarball = 'ebizzy-0.3.tar.gz'): + tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) + utils.extract_tarball_to_dir(tarball, self.srcdir) + os.chdir(self.srcdir) + + utils.system('[ -x configure ] && ./configure') + utils.system('make') + + + # Note: default we use always mmap() + def run_once(self, args = '', num_chunks = 1000, chunk_size = 512000, seconds = 100, num_threads = 100): + + #TODO: Write small functions which will choose many of the above + # variables dynamicaly looking at guest's total resources + logfile = os.path.join(self.resultsdir, 'ebizzy.log') + args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks, chunk_size, seconds, num_threads) + args = args + ' ' + args2 +