From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1MbUTA-0007kb-E2 for ltp-list@lists.sourceforge.net; Thu, 13 Aug 2009 07:11:28 +0000 Received: from smtp.gentoo.org ([140.211.166.183]) by 72vjzd1.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1MbUT4-0005wv-Iz for ltp-list@lists.sourceforge.net; Thu, 13 Aug 2009 07:11:28 +0000 From: Mike Frysinger Date: Thu, 13 Aug 2009 03:11:11 -0400 References: <20090811172957.7074.62874.sendpatchset@subratamodak.linux.ibm.com> <364299f40908120142k47ec9742ub9eb4cf2021dbb94@mail.gmail.com> <1250076060.5373.22.camel@subratamodak.linux.ibm.com> In-Reply-To: <1250076060.5373.22.camel@subratamodak.linux.ibm.com> MIME-Version: 1.0 Message-Id: <200908130311.15362.vapier@gentoo.org> Subject: Re: [LTP] [PATCH 04/05] Add Script which will be at the heart of this infrastructure List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3069847928959817564==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: subrata@linux.vnet.ibm.com Cc: Sachin P Sant , LTP Mailing List , Michael Reed , Nate Straz , Paul Larson , Manoj Iyer , Balbir Singh --===============3069847928959817564== Content-Type: multipart/signed; boundary="nextPart2268474.vhclaPnq9g"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2268474.vhclaPnq9g Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 12 August 2009 07:21:00 Subrata Modak wrote: > On Wed, 2009-08-12 at 01:42 -0700, Garrett Cooper wrote: > > On Tue, Aug 11, 2009 at 10:30 AM, Subrata Modak wrote: > > > At the heart of this infrastructure is this Script, which will > > > actually: 1) Change the temporary command file generated by runltp, > > > 2) Create a new temporary command file which will have the following > > > entries against each one entry in the command file: > > > i) Same TAG COMMAND_LINE entry, > > > ii) Entry to call the script to insert faults, > > > iii) Entry to run as many loops as specified by the user, > > > iv) Entry to call the script to restore kernel to default stat= e, > > > > > > It is capable of creating new entries in the temporary command file > > > with the following tags and command lines: > > > TAG_NAME=3Dtag1, COMMANDLINE=3D"test1", > > > TAG_NAME=3Dtag1_loop1, COMMANDLINE=3D"insert_fault_in_kernel; test= 1", > > > TAG_NAME=3Dtag1_loop2, COMMANDLINE=3D"test1", > > > ... > > > TAG_NAME=3Dtag1_loopn, COMMANDLINE=3D"test1; restore_default_kerne= l", > > > > > > Signed-off-by: Subrata Modak > > > --- > > > > > > tools/create_kernel_faults_in_loops_and_probability.pl > > > +#!/usr/bin/perl > > > > 1. Why is this written in perl? bourne shell should be the maximum > > requirement for any and all infrastructure scripts. > > I initially wrote this in perl as i feel more comfortable in doing > regular expression in perl than in any other language. If you want you > can later replace it with a shell script, i will not have any objection. agreed ... we should avoid perl when possible as it is simply not viable fo= r=20 cross/embedded setups. i already spent quite a bit of time in the past=20 replacing perl scripts with POSIX shell scripts. =2Dmike --nextPart2268474.vhclaPnq9g Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iQIcBAABAgAGBQJKg7yTAAoJEEFjO5/oN/WBU2oP/1E5oADyt7JsZ+9xmorTgPZ3 +GYTMjDU++feGGOaKeHfpFTIW+CQfm5yvM6SqPgmoGZQkF+ZBAlGT7GeHBEOiWSM dTFy3WdBBjFmD2BGbkB/zy0UEfLEKAB1eJp9zZExVo3tCtSvdXsNCY/XbYYVZDjl GzwSn9oHiJgj72y7GK1L9oqGugJUz+CxdUkJCayQzFZclHyiZbYR5mhtecwAgl5B z8m4BCZMyRAMD+uQX1zrlYCL+BDsQ+5yyGZRNnjr8cwjawYTV8D206p+VR3HzWO6 U0F1rHkSITqHwOwjSbamJU+oqZfyLq8B5KE3jJ8yg1NPvJl1X4By9getWOQSREfL IrJ7irS+iLU6zjrDIg6TTlIjtXee9TnKcCE6e2c57kcwQx6YCSDpng8THhWbdERq AJzO/2m8cUkoNQvo+3WtubVFsK6SS/BuQzgmm/dtU7gerNGlMrCsOmzzRjOZfk4l Rm4KxeLzyCNZ2HHQOXbA1yep00gsTDOuYC5rzlrnhyKB/mTgGUnFKz3Bg11blZEI Pi9d8MXTvroWzW/0rmra0gUczZjMGGW7E0+Jp9/cVP6Mx1tjnWsQGr1EAHR6edLj xtOchSlFCR+fZlkFYyM1lUeS1h+h5STB4Jvu6r4ACPsUw7IWav8VndyEUGjaouW0 Wl26NTqvGyrLX8+oaI5e =0S1h -----END PGP SIGNATURE----- --nextPart2268474.vhclaPnq9g-- --===============3069847928959817564== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july --===============3069847928959817564== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============3069847928959817564==--