📄 testa1d.sh
字号:
################################################################################ UNIT TEST A1d FOR kocos.pl################################################################################ Test A1d - Checks if the program shows right message when # no co-occurrences occur at the specified order# and when co-occurrence graph is a tree# Input - test-A1.count# Output - test-A1d.reqdecho "UNIT Test A1d -";echo " For kth order co-occurrence program kocos.pl";echo "Input - Source file from test-A1.count";echo "Output - Destination file from test-A1d.reqd";echo "Test - Checks if the program shows right message when";echo " no co-occurrences occur at the specified order"; #=============================================================================# INPUT#=============================================================================set TestInput="test-A1.count";set Actual="test-A1d.reqd";#=============================================================================# RUN THE PROGRAM#============================================================================= kocos.pl --literal line --order 4 $TestInput > test-A1d.output#=============================================================================# SORT THE RESULTS AND COMPARE#=============================================================================sort test-A1d.output > t1sort $Actual > t2diff -w t1 t2 > variance#=============================================================================# RESULTS OF TESTA1d#=============================================================================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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -