2
0

v42bis_tests.sh 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. #!/bin/sh
  2. #
  3. # V.42bis compression/decompression tests, as specified in V.56ter
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License version 2.1,
  7. # as published by the Free Software Foundation.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public
  15. # License along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. BASE=../test-data/itu/v56ter
  18. ./v42bis_tests -c -d ${BASE}/1.TST
  19. RETVAL=$?
  20. if [ $RETVAL != 0 ]
  21. then
  22. exit $RETVAL
  23. fi
  24. diff ${BASE}/1.TST v42bis_tests.out
  25. RETVAL=$?
  26. if [ $RETVAL != 0 ]
  27. then
  28. exit $RETVAL
  29. fi
  30. ./v42bis_tests -c -d ${BASE}/1X04.TST
  31. RETVAL=$?
  32. if [ $RETVAL != 0 ]
  33. then
  34. exit $RETVAL
  35. fi
  36. diff ${BASE}/1X04.TST v42bis_tests.out
  37. RETVAL=$?
  38. if [ $RETVAL != 0 ]
  39. then
  40. exit $RETVAL
  41. fi
  42. ./v42bis_tests -c -d ${BASE}/1X30.TST
  43. RETVAL=$?
  44. if [ $RETVAL != 0 ]
  45. then
  46. exit $RETVAL
  47. fi
  48. diff ${BASE}/1X30.TST v42bis_tests.out
  49. RETVAL=$?
  50. if [ $RETVAL != 0 ]
  51. then
  52. exit $RETVAL
  53. fi
  54. ./v42bis_tests -c -d ${BASE}/2.TST
  55. RETVAL=$?
  56. if [ $RETVAL != 0 ]
  57. then
  58. exit $RETVAL
  59. fi
  60. diff ${BASE}/2.TST v42bis_tests.out
  61. RETVAL=$?
  62. if [ $RETVAL != 0 ]
  63. then
  64. exit $RETVAL
  65. fi
  66. ./v42bis_tests -c -d ${BASE}/2X10.TST
  67. RETVAL=$?
  68. if [ $RETVAL != 0 ]
  69. then
  70. exit $RETVAL
  71. fi
  72. diff ${BASE}/2X10.TST v42bis_tests.out
  73. RETVAL=$?
  74. if [ $RETVAL != 0 ]
  75. then
  76. exit $RETVAL
  77. fi
  78. ./v42bis_tests -c -d ${BASE}/3.TST
  79. RETVAL=$?
  80. if [ $RETVAL != 0 ]
  81. then
  82. exit $RETVAL
  83. fi
  84. diff ${BASE}/3.TST v42bis_tests.out
  85. RETVAL=$?
  86. if [ $RETVAL != 0 ]
  87. then
  88. exit $RETVAL
  89. fi
  90. ./v42bis_tests -c -d ${BASE}/3X06.TST
  91. RETVAL=$?
  92. if [ $RETVAL != 0 ]
  93. then
  94. exit $RETVAL
  95. fi
  96. diff ${BASE}/3X06.TST v42bis_tests.out
  97. RETVAL=$?
  98. if [ $RETVAL != 0 ]
  99. then
  100. exit $RETVAL
  101. fi
  102. ./v42bis_tests -c -d ${BASE}/4.TST
  103. RETVAL=$?
  104. if [ $RETVAL != 0 ]
  105. then
  106. exit $RETVAL
  107. fi
  108. diff ${BASE}/4.TST v42bis_tests.out
  109. RETVAL=$?
  110. if [ $RETVAL != 0 ]
  111. then
  112. exit $RETVAL
  113. fi
  114. ./v42bis_tests -c -d ${BASE}/4X04.TST
  115. RETVAL=$?
  116. if [ $RETVAL != 0 ]
  117. then
  118. exit $RETVAL
  119. fi
  120. diff ${BASE}/4X04.TST v42bis_tests.out
  121. RETVAL=$?
  122. if [ $RETVAL != 0 ]
  123. then
  124. exit $RETVAL
  125. fi
  126. ./v42bis_tests -c -d ${BASE}/5.TST
  127. RETVAL=$?
  128. if [ $RETVAL != 0 ]
  129. then
  130. exit $RETVAL
  131. fi
  132. diff ${BASE}/5.TST v42bis_tests.out
  133. RETVAL=$?
  134. if [ $RETVAL != 0 ]
  135. then
  136. exit $RETVAL
  137. fi
  138. ./v42bis_tests -c -d ${BASE}/5X16.TST
  139. RETVAL=$?
  140. if [ $RETVAL != 0 ]
  141. then
  142. exit $RETVAL
  143. fi
  144. diff ${BASE}/5X16.TST v42bis_tests.out
  145. RETVAL=$?
  146. if [ $RETVAL != 0 ]
  147. then
  148. exit $RETVAL
  149. fi