From patchwork Mon Jul 6 05:40:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sudhir kumar X-Patchwork-Id: 34186 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 n665e9bB004919 for ; Mon, 6 Jul 2009 05:40:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbZGFFkD (ORCPT ); Mon, 6 Jul 2009 01:40:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751528AbZGFFkC (ORCPT ); Mon, 6 Jul 2009 01:40:02 -0400 Received: from wf-out-1314.google.com ([209.85.200.175]:35511 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751458AbZGFFkB (ORCPT ); Mon, 6 Jul 2009 01:40:01 -0400 Received: by wf-out-1314.google.com with SMTP id 26so1416112wfd.4 for ; Sun, 05 Jul 2009 22:40:03 -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=3mhAUJ1Oed4oNhxn6D/gNT+HvF7PWaSXRuzs8WXZCF0=; b=NRPDZzGxVLuACl7bUsAJWFOEvkTlvD5LoI/9yZh1mb5fQa4YOn0JadsxGnH0iaHRj1 5PXs3PVBOsZ/AJ/PtgykIlhfyV8JG7bshTEb/icIrK+SGCpTIdLq76QDZ2n9FGZ3XHVP gIpus6G9X8z/iEfhGYWMSHzu+0iirAp6RjUHo= 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=HyFlzfpKMtoJ/yTRUnUw8enNljRlC9FjesK/xl/Ht/fVHzacSmWISLUMrdrngM1043 xLK8kfrP5aMIzbl+Wh8BevEXQeVmctqx4fAM5u5lpFMWpw37cMjKDYb7Lfjv0+nCBz45 f9BikyFYuFVjnMICZeWFlDBIk9B2wNMFWBm5g= MIME-Version: 1.0 Received: by 10.142.126.6 with SMTP id y6mr1291146wfc.163.1246858803793; Sun, 05 Jul 2009 22:40:03 -0700 (PDT) Date: Mon, 6 Jul 2009 11:10:03 +0530 Message-ID: Subject: [AUTOTEST] [PATCH 1/2] Add latest LTP test in autotest From: sudhir kumar To: Autotest mailing list Cc: kvm-devel , Lucas Meneghel Rodrigues , Uri Lublin Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This patch updates the ltp wrapper in autotest to execute the latest ltp. At present autotest contains ltp which is more than 1 year old. There have been added lots of testcases in ltp within this period. So this patch updates the wrapper to run the June2009 release of ltp which is available at http://prdownloads.sourceforge.net/ltp/ltp-full-20090630.tgz Issues: LTP has a history of some of the testcases getting broken. Anyways that has nothing to worry about with respect to autotest. One of the known issue is broken memory controller issue with latest kernels(cgroups and memory resource controller enabled kernels). The workaround for them I use is to disable or delete those tests from ltp source and tar it again with the same name. Though people might use different workarounds for it. I have added an option which generates a fancy html results file. Also the run is left to be a default run as expected. For autotest users, please untar the results file I am sending, run cd results/default; firefox results.html, click ltp_results.html This is a symlink to the ltp_results.html which is generated by ltp. Please provide your comments, concerns and issues. Signed-off-by: Sudhir Kumar cmd = os.path.join(self.srcdir, script) + ' ' + args Index: autotest/client/tests/ltp/ltp.py =================================================================== --- autotest.orig/client/tests/ltp/ltp.py +++ autotest/client/tests/ltp/ltp.py @@ -23,8 +23,8 @@ class ltp(test.test): self.job.require_gcc() - # http://prdownloads.sourceforge.net/ltp/ltp-full-20080229.tgz - def setup(self, tarball = 'ltp-full-20080229.tar.bz2'): + # http://prdownloads.sourceforge.net/ltp/ltp-full-20090630.tgz + def setup(self, tarball = 'ltp-full-20090630.tgz'): tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) utils.extract_tarball_to_dir(tarball, self.srcdir) os.chdir(self.srcdir) @@ -52,8 +52,9 @@ class ltp(test.test): # In case the user wants to run another test script if script == 'runltp': logfile = os.path.join(self.resultsdir, 'ltp.log') + htmlfile = os.path.join(self.resultsdir, 'ltp_results.html') failcmdfile = os.path.join(self.debugdir, 'failcmdfile') - args2 = '-q -l %s -C %s -d %s' % (logfile, failcmdfile, self.tmpdir) + args2 = '-l %s -g %s -C %s -d %s' % (logfile, htmlfile, failcmdfile, self.tmpdir) args = args + ' ' + args2