Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Problem with execution of test cases with Shell+ lab
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nilesh  
View profile  
 More options Oct 13 2009, 10:56 pm
From: Nilesh <nileshmalpe...@gmail.com>
Date: Tue, 13 Oct 2009 19:56:30 -0700 (PDT)
Local: Tues, Oct 13 2009 10:56 pm
Subject: Problem with execution of test cases with Shell+ lab

Note: If I'm not mistaken, Shell+ lab doesn't mandate that we execute
the test cases from earlier lab on the revised shell implementation.

However, I noticed that after implementing parsing in the shell+ lab
which supports parsing of '>', '>>', '|' and '<' correctly, I no
longer can make use of most of the test cases from the previous lab
correctly.

The root cause of this problem lies in how some (or rather most) of
the traceXX.txt files have been specifying the echo command arguments
which contain io redirection character in it. In order to print
command line, it specifies something like /bin/echo -e tsh> blah blah
blah...

If the shell parsing function is implemented correctly, then the above
is interpreted as /bin/echo -e tsh > blah blah blah ..
and this makes the output to be different from the output of make
rtestXX output.

If we open the tracexx.txt file and make sure that echo commands are
using single quotes to enclose the text to be shown on the screen,
then everything works fine.

E.g. in trace06.txt
original line #4 is
/bin/echo -e tsh> ./myspin 4

change line #4 to
/bin/echo -e 'tsh> ./myspin 4'

and then one can use the output of 'make rtest06' and 'make test06'
command to figure out diff betN shell output.

Hope this helps others who may be interested in checking basic
functionality of the Shell+ implementation.

Nilesh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Saelee  
View profile  
 More options Oct 14 2009, 1:19 am
From: Michael Saelee <l...@soi2.org>
Date: Wed, 14 Oct 2009 00:19:24 -0500
Local: Wed, Oct 14 2009 1:19 am
Subject: Re: [351sysprog] Problem with execution of test cases with Shell+ lab
That's a great point, actually -- thanks for sending out the "hint"!

- Michael

On Oct 13, 2009, at 9:56 PM, Nilesh wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »