⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testa3.sh

📁 N元组统计程序源代码
💻 SH
字号:
################################################################################			INTEGRATION TEST A3 FOR statistic.pl and kocos.pl################################################################################       Test A3  -     	Checks for the compatibility between the programs#			statistic and kocos#	Input	-	#	To count-	test-A3.in#	To statistic 	test-A3.count#	To kocos -	test-A3.out#	Output	-	test-A3[a-d].reqdecho "Integrated Test A3 -";echo "	 	For NSP program statistic.pl and kocos.pl";echo "Input - 	";echo "To count -	Source file from test-A3.in";echo "To statistic -	test-A3.count";echo "To kocos -	test-A3.out";echo "Output - 	Destination file from test-A3[a-d].reqd";echo "Test -   	Checks for the compatibility between the programs"; echo "		statistic.pl and kocos.pl for different orders";#=============================================================================#				INPUT#=============================================================================set TestInput="test-A3.in";#=============================================================================#				RUN THE PROGRAM#=============================================================================echo "running count.pl";count.pl --newLine test-A3.count $TestInput echo "running statistic.pl";statistic.pl ll test-A3.out test-A3.countecho "running kocos with order = 1";kocos.pl --literal line test-A3.out > test-A3a.outputecho "running kocos with order = 2";kocos.pl --literal line --order 2 test-A3.out > test-A3b.outputecho "running kocos with order = 3";kocos.pl --literal line --order 3 test-A3.out > test-A3c.outputecho "running kocos with order = 4";kocos.pl --literal line --order 4 test-A3.out > test-A3d.output#=============================================================================#				SORT THE RESULTS AND COMPARE#=============================================================================sort test-A3a.output > t1sort test-A3a.reqd > t2diff -w t1 t2 > variance1sort test-A3b.output > t3sort test-A3b.reqd > t4diff -w t4 t3 > variance2sort test-A3c.output > t5sort test-A3c.reqd > t6diff -w t5 t6 > variance3sort test-A3d.output > t7sort test-A3d.reqd > t8diff -w t7 t8 > variance4#=============================================================================#				RESULTS OF TESTA3#=============================================================================if(-z variance1 && -z variance2 && -z variance3 && -z variance4) then        echo "STATUS : OK Test Results Match.....";else	echo "STATUS : ERROR Test Results don't Match....";        echo "When Tested Against test-A3a.reqd - ";        cat variance1	echo "When Tested Against KEY file test-A3b.reqd - ";        cat variance2	echo "When Tested Against KEY file test-A3c.reqd - ";        cat variance3	echo "When Tested Against KEY file test-A3d.reqd - ";        cat variance4endifecho ""/bin/rm -f t1 t2 variance1 t3 t4 variance2 filename t5 variance3 variance4 t6 t7 t8 test-A3.out test-A3.count#############################################################################

⌨️ 快捷键说明

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