testa6c.sh

来自「N元组统计程序源代码」· Shell 代码 · 共 58 行

SH
58
字号
################################################################################				UNIT TEST A6c FOR kocos.pl################################################################################       Test A6c  -     Checks if the program finds correct 3rd order #			co-occurrences when co-occurrence graph is a chain with#			two alternate loops#	Input	-	test-A6.count#	Output	-	test-A6c.reqdecho "UNIT Test A6c -";echo "		For kth order co-occurrence program kocos.pl";echo "Input - 	Source file from test-A6.count";echo "Output - 	Destination file from test-A6c.reqd";echo "Test -    	Checks if the program finds correct 3rd order";echo "		co-occurrences when the co-occurrence graph is a chain";echo "		with two alternate loops"; #=============================================================================#				INPUT#=============================================================================set TestInput="test-A6.count";set Actual="test-A6c.reqd";#=============================================================================#				RUN THE PROGRAM#============================================================================= kocos.pl --literal line --order 3 $TestInput > test-A6c.output#=============================================================================#				SORT THE RESULTS AND COMPARE#=============================================================================sort test-A6c.output > t1sort $Actual > t2diff -w t1 t2 > variance#=============================================================================#				RESULTS OF TESTA6c #=============================================================================if(-z variance) then        echo "STATUS : 	OK Test Results Match.....";else	echo "STATUS : 	ERROR Test Results don't Match....";        echo "		When Tested Against $Actual - ";        cat varianceendifecho ""/bin/rm -f t1 t2 variance#############################################################################

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?