Who can give me more information and advice? Thanks

 


发件人: konghao [mailto:konghao@bsw.net.cn]
发送时间: 2007年1月10 9:57
收件人: 胡昌军
主题: 答复: [Crackerjack-devel] I have a question about the compare program

 

No, this example is just a example,it is far from enough in a really program.

Almost every systemcall has its special designed compare program, maybe very long.

And, I think ervery systemcall highly possible do NOT has only one testcase with compare program.

Maybe a systemcall has three testcases and three compare programs to test the systemcall in different conditions.

-----邮件原件-----
发件人: 胡昌军 [mailto:huchj@csip.org.cn]
发送时间: 2007年1月10 9:30
收件人: konghao
主题: 答复: [Crackerjack-devel] I have a question about the compare program

Thank you very much

Another qestion

the content of the “compare” as follow:

#!/bin/sh

diff –u $1 $2

every compare program which I will write is only like the above  example , it contains a command “diff –u $1 $2” ,  is ok ?

Who can tell me ?

 


发件人: konghao [mailto:konghao@bsw.net.cn]
发送时间: 2007年1月10 9:09
收件人: 胡昌军; crackerjack-devel@lists.sourceforge.net
主题: 答复: [Crackerjack-devel] I have a question about the compare program

 

Hi,there

 

You can write it with shell script:)

The current version will use below language;

-Framework->Ruby

-Test program ->C

-Compare program->shell

The language after v0.9 will be discussed in the future.

 

Regards.

 

Hao Kong - BSTQC

-----邮件原件-----
发件人: crackerjack-devel-bounces@lists.sourceforge.net [mailto:crackerjack-devel-bounces@lists.sourceforge.net] 代表 胡昌军
发送时间: 2007年1月9 21:38
收件人: crackerjack-devel@lists.sourceforge.net
主题: [Crackerjack-devel] I have a question about the compare program

Hi all:

Recently I study how to write a “compare” program for  the testcase of a system call, I found a example about “compare” program under the directory “ /crackerjack/testcases/system_A “.

the content of the “compare” as follow:

#!/bin/sh

diff –u $1 $2

I also found the “compare” program under the directory “/crackerjack/testcases/nanosleep” ,the compare program was writed by ruby , and it is more complex  than the above .

My question is that :

     When we write the compare program, we should use shell script or ruby?

If we write every compare program by shell script , every compare program is only like the above first example , it contains a command “diff –u $1 $2” , is ok ?

 

Hu changjun

Wish best.