All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: subrata@linux.vnet.ibm.com
Cc: Sachin P Sant <sachinp@linux.vnet.ibm.com>,
	LTP Mailing List <ltp-list@lists.sourceforge.net>,
	Michael Reed <mreed10@us.ibm.com>, Nate Straz <nate@refried.org>,
	Paul Larson <paul.larson@ubuntu.com>,
	Manoj Iyer <manoj.iyer@ubuntu.com>,
	Balbir Singh <balbir@linux.vnet.ibm.com>
Subject: Re: [LTP] [PATCH 04/05] Add Script which will be at the heart of this infrastructure
Date: Thu, 13 Aug 2009 03:11:11 -0400	[thread overview]
Message-ID: <200908130311.15362.vapier@gentoo.org> (raw)
In-Reply-To: <1250076060.5373.22.camel@subratamodak.linux.ibm.com>


[-- Attachment #1.1: Type: text/plain, Size: 1857 bytes --]

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 state,
> > >
> > > It is capable of creating new entries in the temporary command file
> > > with the following tags and command lines:
> > > TAG_NAME=tag1,  COMMANDLINE="test1",
> > > TAG_NAME=tag1_loop1,    COMMANDLINE="insert_fault_in_kernel; test1",
> > > TAG_NAME=tag1_loop2,    COMMANDLINE="test1",
> > > ...
> > > TAG_NAME=tag1_loopn,    COMMANDLINE="test1; restore_default_kernel",
> > >
> > > Signed-off-by: Subrata Modak <subrata@linux.vnet.ibm.com>
> > > ---
> > >
> > > 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 for 
cross/embedded setups.  i already spent quite a bit of time in the past 
replacing perl scripts with POSIX shell scripts.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 355 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2009-08-13  7:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 17:29 [LTP] [PATCH 00/05] Integration of "Fault Injection Framework" into LTP Subrata Modak
2009-08-11 17:30 ` [LTP] [PATCH 01/05] Provide all necessary information through ltp/README Subrata Modak
2009-08-11 17:30 ` [LTP] [PATCH 02/05] Add Script which would actually do the job of injecting faults Subrata Modak
2009-08-12  8:45   ` Garrett Cooper
2009-08-12 11:20     ` Subrata Modak
2009-08-11 17:30 ` [LTP] [PATCH 03/05] Add Script so the kernel is restored back to its original pristine form Subrata Modak
2009-08-11 17:30 ` [LTP] [PATCH 04/05] Add Script which will be at the heart of this infrastructure Subrata Modak
2009-08-12  8:42   ` Garrett Cooper
2009-08-12 11:21     ` Subrata Modak
2009-08-13  7:11       ` Mike Frysinger [this message]
2009-08-11 17:31 ` [LTP] [PATCH 05/05] Add the necessary Interface and Option through "runltp" Subrata Modak
2009-08-11 18:02   ` Paul Larson
     [not found]   ` <4A81B1A0.5050708@ubuntu.com>
2009-08-12 11:21     ` Subrata Modak
2009-08-13  7:13   ` Mike Frysinger
2009-08-11 17:31 ` [LTP] [RESULTS] Results of test run for "Fault Injection Framework" Subrata Modak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200908130311.15362.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=manoj.iyer@ubuntu.com \
    --cc=mreed10@us.ibm.com \
    --cc=nate@refried.org \
    --cc=paul.larson@ubuntu.com \
    --cc=sachinp@linux.vnet.ibm.com \
    --cc=subrata@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.