public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Caspar Zhang <caspar@casparzhang.com>
Cc: LTP <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] file: add the new output format of C program file
Date: Thu, 26 Jul 2012 21:31:22 +0800	[thread overview]
Message-ID: <501146AA.7060809@cn.fujitsu.com> (raw)
In-Reply-To: <5010D13F.6020006@casparzhang.com>

On 07/26/2012 01:10 PM, Caspar Zhang wrote:
> On 07/26/2012 10:44 AM, Wanlong Gao wrote:
>> New output format of file command for C program file is like below,
>> $ file src/guestfs.c
>> src/guestfs.c: C source, ASCII text
>>
>> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> 
> Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

Thanks for your review, pushed.

Wanlong Gao

> 
>> ---
>>   testcases/commands/ade/file/file_test.sh | 14 ++++++++++----
>>   1 file changed, 10 insertions(+), 4 deletions(-)
>>
>> diff --git a/testcases/commands/ade/file/file_test.sh b/testcases/commands/ade/file/file_test.sh
>> index 70420e3..8a4e9b5 100755
>> --- a/testcases/commands/ade/file/file_test.sh
>> +++ b/testcases/commands/ade/file/file_test.sh
>> @@ -314,10 +314,16 @@ then
>>           $LTPBIN/tst_resm TPASS "file: Recognised C program text correctly"
>>           rm -f $LTPTMP/cprog.c
>>       else
>> -        $LTPBIN/tst_res TFAIL $LTPTMP/file.out \
>> -             "file: Failed to Recognize C program text correctly. Reason:"
>> -        TFAILCNT=$(( $TFAILCNT+1 ))
>> -
>> +        grep "C source, ASCII text" $LTPTMP/file.out > /dev/null 2>&1
>> +        if [ $? -eq 0 ]
>> +        then
>> +            $LTPBIN/tst_resm TPASS "file: Recognised C program text correctly"
>> +            rm -f $LTPTMP/cprog.c
>> +        else
>> +            $LTPBIN/tst_res TFAIL $LTPTMP/file.out \
>> +                 "file: Failed to Recognize C program text correctly. Reason:"
>> +            TFAILCNT=$(( $TFAILCNT+1 ))
>> +        fi
>>       fi
>>   else
>>       $LTPBIN/tst_resm TFAIL "file: Failed to recognize C programi text"
>>
> 
> 
> 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2012-07-26 13:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1343270673-8363-1-git-send-email-gaowanlong@cn.fujitsu.com>
2012-07-26  4:24 ` [LTP] [PATCH] file: add the new output format of C program file Zhouping Liu
2012-07-26  5:10 ` Caspar Zhang
2012-07-26 13:31   ` Wanlong Gao [this message]

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=501146AA.7060809@cn.fujitsu.com \
    --to=gaowanlong@cn.fujitsu.com \
    --cc=caspar@casparzhang.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox