发件人: firstname.lastname@example.org [mailto:email@example.com] 代表 胡昌军
发送时间: 2007年1月9日 21:38
主题: [Crackerjack-devel] I have a question about the compare program
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:
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 ?