You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

575 lines
15KB

  1. #!/bin/sh
  2. #
  3. # automatic regression test for ffmpeg
  4. #
  5. #
  6. #set -x
  7. # Even in the 21st century some diffs are not supporting -u.
  8. diff -u $0 $0 > /dev/null 2>&1
  9. if [ $? -eq 0 ]; then
  10. diff_cmd="diff -u"
  11. else
  12. diff_cmd="diff"
  13. fi
  14. set -e
  15. datadir="./data"
  16. logfile="$datadir/ffmpeg.regression"
  17. outfile="$datadir/a-"
  18. # tests to do
  19. if [ "$1" = "mpeg4" ] ; then
  20. do_mpeg4=y
  21. elif [ "$1" = "mpeg" ] ; then
  22. do_mpeg=y
  23. elif [ "$1" = "ac3" ] ; then
  24. do_ac3=y
  25. elif [ "$1" = "libavtest" ] ; then
  26. do_libav=y
  27. logfile="$datadir/libav.regression"
  28. outfile="$datadir/b-"
  29. else
  30. do_mpeg=y
  31. do_mpeg2=y
  32. do_mpeg2thread=y
  33. do_msmpeg4v2=y
  34. do_msmpeg4=y
  35. do_wmv1=y
  36. do_wmv2=y
  37. do_h263=y
  38. do_h263p=y
  39. do_mpeg4=y
  40. do_huffyuv=y
  41. do_mjpeg=y
  42. do_ljpeg=y
  43. do_rv10=y
  44. do_mp2=y
  45. do_ac3=y
  46. do_g726=y
  47. do_adpcm_ima_wav=y
  48. do_adpcm_ms=y
  49. do_rc=y
  50. do_mpeg4adv=y
  51. do_mpeg4thread=y
  52. do_mpeg4nr=y
  53. do_mpeg1b=y
  54. do_asv1=y
  55. do_asv2=y
  56. do_flv=y
  57. do_ffv1=y
  58. do_error=y
  59. fi
  60. # various files
  61. ffmpeg="../ffmpeg_g"
  62. tiny_psnr="./tiny_psnr"
  63. reffile="$2"
  64. benchfile="$datadir/ffmpeg.bench"
  65. raw_src="$3/%d.pgm"
  66. raw_dst="$datadir/out.yuv"
  67. raw_ref="$datadir/ref.yuv"
  68. pcm_src="asynth1.sw"
  69. pcm_dst="$datadir/out.wav"
  70. # create the data directory if it does not exists
  71. mkdir -p $datadir
  72. do_ffmpeg()
  73. {
  74. f="$1"
  75. shift
  76. echo $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $*
  77. $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
  78. egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
  79. rm -f /tmp/ffmpeg$$
  80. md5sum -b $f >> $logfile
  81. if [ $f = $raw_dst ] ; then
  82. $tiny_psnr $f $raw_ref >> $logfile
  83. fi
  84. expr "`cat $datadir/bench.tmp`" : '.*utime=\(.*s\)' > $datadir/bench2.tmp
  85. echo `cat $datadir/bench2.tmp` $f >> $benchfile
  86. }
  87. do_ffmpeg_crc()
  88. {
  89. f="$1"
  90. shift
  91. echo $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $* -f crc $datadir/ffmpeg.crc
  92. $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $* -f crc $datadir/ffmpeg.crc > /tmp/ffmpeg$$ 2>&1
  93. egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
  94. rm -f /tmp/ffmpeg$$
  95. echo "$f `cat $datadir/ffmpeg.crc`" >> $logfile
  96. }
  97. do_ffmpeg_nocheck()
  98. {
  99. f="$1"
  100. shift
  101. echo $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $*
  102. $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
  103. egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
  104. rm -f /tmp/ffmpeg$$
  105. expr "`cat $datadir/bench.tmp`" : '.*utime=\(.*s\)' > $datadir/bench2.tmp
  106. echo `cat $datadir/bench2.tmp` $f >> $benchfile
  107. }
  108. echo "ffmpeg regression test" > $logfile
  109. echo "ffmpeg benchmarks" > $benchfile
  110. ###################################
  111. # generate reference for quality check
  112. do_ffmpeg_nocheck $raw_ref -y -f pgmyuv -i $raw_src -an -f rawvideo $raw_ref
  113. ###################################
  114. if [ -n "$do_mpeg" ] ; then
  115. # mpeg1 encoding
  116. file=${outfile}mpeg1.mpg
  117. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -f mpeg1video $file
  118. # mpeg1 decoding
  119. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  120. fi
  121. ###################################
  122. if [ -n "$do_mpeg2" ] ; then
  123. # mpeg2 encoding
  124. file=${outfile}mpeg2.mpg
  125. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1video $file
  126. # mpeg2 decoding
  127. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  128. # mpeg2 encoding interlaced
  129. file=${outfile}mpeg2i.mpg
  130. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1video -ildct -ilme $file
  131. # mpeg2 decoding
  132. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  133. fi
  134. ###################################
  135. if [ -n "$do_mpeg2thread" ] ; then
  136. # mpeg2 encoding interlaced
  137. file=${outfile}mpeg2thread.mpg
  138. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1video -bf 2 -ildct -ilme -threads 2 $file
  139. # mpeg2 decoding
  140. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  141. fi
  142. ###################################
  143. if [ -n "$do_msmpeg4v2" ] ; then
  144. # msmpeg4 encoding
  145. file=${outfile}msmpeg4v2.avi
  146. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec msmpeg4v2 $file
  147. # msmpeg4v2 decoding
  148. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  149. fi
  150. ###################################
  151. if [ -n "$do_msmpeg4" ] ; then
  152. # msmpeg4 encoding
  153. file=${outfile}msmpeg4.avi
  154. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec msmpeg4 $file
  155. # msmpeg4 decoding
  156. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  157. fi
  158. ###################################
  159. if [ -n "$do_wmv1" ] ; then
  160. # wmv1 encoding
  161. file=${outfile}wmv1.avi
  162. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec wmv1 $file
  163. # wmv1 decoding
  164. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  165. fi
  166. ###################################
  167. if [ -n "$do_wmv2" ] ; then
  168. # wmv2 encoding
  169. file=${outfile}wmv2.avi
  170. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec wmv2 $file
  171. # wmv2 decoding
  172. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  173. fi
  174. ###################################
  175. if [ -n "$do_h263" ] ; then
  176. # h263 encoding
  177. file=${outfile}h263.avi
  178. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -s 352x288 -an -vcodec h263 $file
  179. # h263 decoding
  180. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  181. fi
  182. ###################################
  183. if [ -n "$do_h263p" ] ; then
  184. # h263p encoding
  185. file=${outfile}h263p.avi
  186. do_ffmpeg $file -y -qscale 2 -umv -aiv -aic -f pgmyuv -i $raw_src -s 352x288 -an -vcodec h263p -ps 300 $file
  187. # h263p decoding
  188. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  189. fi
  190. ###################################
  191. if [ -n "$do_mpeg4" ] ; then
  192. # mpeg4
  193. file=${outfile}odivx.mp4
  194. do_ffmpeg $file -y -4mv -hq -qscale 10 -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  195. # mpeg4 decoding
  196. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  197. fi
  198. ###################################
  199. if [ -n "$do_huffyuv" ] ; then
  200. # huffyuv
  201. file=${outfile}huffyuv.avi
  202. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec huffyuv -strict -1 $file
  203. # huffyuv decoding
  204. do_ffmpeg $raw_dst -y -i $file -f rawvideo -strict -1 $raw_dst
  205. fi
  206. ###################################
  207. if [ -n "$do_rc" ] ; then
  208. # mpeg4 rate control
  209. file=${outfile}mpeg4-rc.avi
  210. do_ffmpeg $file -y -b 400 -bf 2 -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  211. # mpeg4 rate control decoding
  212. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  213. fi
  214. ###################################
  215. if [ -n "$do_mpeg4adv" ] ; then
  216. # mpeg4
  217. file=${outfile}mpeg4-adv.avi
  218. do_ffmpeg $file -y -qscale 9 -4mv -hq -part -ps 200 -aic -trell -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  219. # mpeg4 decoding
  220. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  221. fi
  222. ###################################
  223. if [ -n "$do_mpeg4thread" ] ; then
  224. # mpeg4
  225. file=${outfile}mpeg4-thread.avi
  226. do_ffmpeg $file -y -b 500 -4mv -hq -part -ps 200 -aic -trell -bf 2 -f pgmyuv -i $raw_src -an -vcodec mpeg4 -threads 2 $file
  227. # mpeg4 decoding
  228. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  229. fi
  230. ###################################
  231. if [ -n "$do_error" ] ; then
  232. # damaged mpeg4
  233. file=${outfile}error-mpeg4-adv.avi
  234. do_ffmpeg $file -y -qscale 7 -4mv -mbd 2 -part -ps 250 -error 10 -aic -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  235. # damaged mpeg4 decoding
  236. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  237. fi
  238. ###################################
  239. if [ -n "$do_mpeg4nr" ] ; then
  240. # noise reduction
  241. file=${outfile}mpeg4-nr.avi
  242. do_ffmpeg $file -y -qscale 8 -4mv -mbd 2 -nr 200 -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  243. # mpeg4 decoding
  244. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  245. fi
  246. ###################################
  247. if [ -n "$do_mpeg1b" ] ; then
  248. # mpeg1
  249. file=${outfile}mpeg1b.mpg
  250. do_ffmpeg $file -y -qscale 8 -bf 3 -ps 200 -f pgmyuv -i $raw_src -an -vcodec mpeg1video -f mpeg1video $file
  251. # mpeg1 decoding
  252. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  253. fi
  254. ###################################
  255. if [ -n "$do_mjpeg" ] ; then
  256. # mjpeg
  257. file=${outfile}mjpeg.avi
  258. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec mjpeg $file
  259. # mjpeg decoding
  260. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  261. fi
  262. ###################################
  263. if [ -n "$do_ljpeg" ] ; then
  264. # ljpeg
  265. file=${outfile}ljpeg.avi
  266. do_ffmpeg $file -y -f pgmyuv -i $raw_src -an -vcodec ljpeg $file
  267. # ljpeg decoding
  268. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  269. fi
  270. ###################################
  271. if [ -n "$do_rv10" ] ; then
  272. # rv10 encoding
  273. file=${outfile}rv10.rm
  274. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an $file
  275. # rv10 decoding
  276. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  277. fi
  278. ###################################
  279. if [ -n "$do_asv1" ] ; then
  280. # asv1 encoding
  281. file=${outfile}asv1.avi
  282. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec asv1 $file
  283. # asv1 decoding
  284. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  285. fi
  286. ###################################
  287. if [ -n "$do_asv2" ] ; then
  288. # asv2 encoding
  289. file=${outfile}asv2.avi
  290. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec asv2 $file
  291. # asv2 decoding
  292. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  293. fi
  294. ###################################
  295. if [ -n "$do_flv" ] ; then
  296. # flv encoding
  297. file=${outfile}flv.flv
  298. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec flv $file
  299. # flv decoding
  300. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  301. fi
  302. ###################################
  303. if [ -n "$do_ffv1" ] ; then
  304. # ffv1 encoding
  305. file=${outfile}ffv1.avi
  306. do_ffmpeg $file -y -strict -1 -f pgmyuv -i $raw_src -an -vcodec ffv1 $file
  307. # ffv1 decoding
  308. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  309. fi
  310. ###################################
  311. if [ -n "$do_mp2" ] ; then
  312. # mp2 encoding
  313. file=${outfile}mp2.mp2
  314. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src $file
  315. # mp2 decoding
  316. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  317. fi
  318. ###################################
  319. if [ -n "$do_ac3" ] ; then
  320. # ac3 encoding
  321. file=${outfile}ac3.rm
  322. do_ffmpeg $file -y -ab 128 -ac 2 -f s16le -i $pcm_src -vn $file
  323. # ac3 decoding
  324. #do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  325. fi
  326. ###################################
  327. if [ -n "$do_g726" ] ; then
  328. # g726 encoding
  329. file=${outfile}g726.wav
  330. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -ab 32 -ac 1 -ar 8000 -acodec g726 $file
  331. # g726 decoding
  332. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  333. fi
  334. ###################################
  335. if [ -n "$do_adpcm_ima_wav" ] ; then
  336. # encoding
  337. file=${outfile}adpcm_ima.wav
  338. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -acodec adpcm_ima_wav $file
  339. # decoding
  340. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  341. fi
  342. ###################################
  343. if [ -n "$do_adpcm_ms" ] ; then
  344. # encoding
  345. file=${outfile}adpcm_ms.wav
  346. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -acodec adpcm_ms $file
  347. # decoding
  348. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  349. fi
  350. ###################################
  351. # libav testing
  352. ###################################
  353. if [ -n "$do_libav" ] ; then
  354. # avi
  355. file=${outfile}libav.avi
  356. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  357. do_ffmpeg_crc $file -i $file
  358. # asf
  359. file=${outfile}libav.asf
  360. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  361. do_ffmpeg_crc $file -i $file
  362. # rm
  363. file=${outfile}libav.rm
  364. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  365. # broken
  366. #do_ffmpeg_crc $file -i $file
  367. # mpegps
  368. file=${outfile}libav.mpg
  369. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  370. do_ffmpeg_crc $file -i $file
  371. # swf (decode audio only)
  372. file=${outfile}libav.swf
  373. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec mp2 $file
  374. do_ffmpeg_crc $file -i $file
  375. # ffm
  376. #file=${outfile}libav.ffm
  377. #do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  378. #do_ffmpeg_crc $file -i $file
  379. # flv
  380. file=${outfile}libav.flv
  381. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  382. do_ffmpeg_crc $file -i $file
  383. # mov
  384. file=${outfile}libav.mov
  385. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec pcm_alaw $file
  386. do_ffmpeg_crc $file -i $file
  387. # nut
  388. file=${outfile}libav.nut
  389. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  390. do_ffmpeg_crc $file -i $file
  391. # XXX: need mpegts tests (add bitstreams or add output capability in ffmpeg)
  392. ####################
  393. # streamed images
  394. # mjpeg
  395. #file=${outfile}libav.mjpeg
  396. #do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
  397. #do_ffmpeg_crc $file -i $file
  398. # pbmpipe
  399. file=${outfile}libav.pbm
  400. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f imagepipe $file
  401. do_ffmpeg_crc $file -f imagepipe -i $file
  402. # pgmpipe
  403. file=${outfile}libav.pgm
  404. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f imagepipe $file
  405. do_ffmpeg_crc $file -f imagepipe -i $file
  406. # ppmpipe
  407. file=${outfile}libav.ppm
  408. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f imagepipe $file
  409. do_ffmpeg_crc $file -f imagepipe -i $file
  410. # gif
  411. file=${outfile}libav.gif
  412. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
  413. #do_ffmpeg_crc $file -i $file
  414. # yuv4mpeg
  415. file=${outfile}libav.yuv4mpeg
  416. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
  417. #do_ffmpeg_crc $file -i $file
  418. ####################
  419. # image formats
  420. # pgm (we do not do md5 on image files yet)
  421. file=${outfile}libav%d.pgm
  422. $ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
  423. do_ffmpeg_crc $file -i $file
  424. # ppm (we do not do md5 on image files yet)
  425. file=${outfile}libav%d.ppm
  426. $ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
  427. do_ffmpeg_crc $file -i $file
  428. # jpeg (we do not do md5 on image files yet)
  429. #file=${outfile}libav%d.jpg
  430. #$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
  431. #do_ffmpeg_crc $file -i $file
  432. ####################
  433. # audio only
  434. # wav
  435. file=${outfile}libav.wav
  436. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  437. do_ffmpeg_crc $file -i $file
  438. # alaw
  439. file=${outfile}libav.al
  440. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  441. do_ffmpeg_crc $file -i $file
  442. # mulaw
  443. file=${outfile}libav.ul
  444. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  445. do_ffmpeg_crc $file -i $file
  446. # au
  447. file=${outfile}libav.au
  448. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  449. do_ffmpeg_crc $file -i $file
  450. ####################
  451. # pix_fmt conversions
  452. conversions="yuv420p yuv422p yuv444p yuv422 yuv410p yuv411p yuvj420p \
  453. yuvj422p yuvj444p rgb24 bgr24 rgba32 rgb565 rgb555 gray monow \
  454. monob pal8"
  455. for pix_fmt in $conversions ; do
  456. file=${outfile}libav-${pix_fmt}.yuv
  457. do_ffmpeg_nocheck $file -r 1 -t 1 -y -f pgmyuv -i $raw_src \
  458. -f rawvideo -s 352x288 -pix_fmt $pix_fmt $raw_dst
  459. do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $raw_dst \
  460. -f rawvideo -s 352x288 -pix_fmt yuv444p $file
  461. done
  462. fi
  463. if $diff_cmd $logfile $reffile ; then
  464. echo
  465. echo Regression test succeeded.
  466. exit 0
  467. else
  468. echo
  469. echo Regression test: Error.
  470. exit 1
  471. fi