Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: tests/run_vectors.sh

Issue 28553003: Updating Opus to a pre-release of 1.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Removing failing file Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/tansig_table.h ('k') | tests/test_opus_api.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2011-2012 Jean-Marc Valin 3 # Copyright (c) 2011-2012 Jean-Marc Valin
4 # 4 #
5 # This file is extracted from RFC6716. Please see that RFC for additional 5 # This file is extracted from RFC6716. Please see that RFC for additional
6 # information. 6 # information.
7 # 7 #
8 # Redistribution and use in source and binary forms, with or without 8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions 9 # modification, are permitted provided that the following conditions
10 # are met: 10 # are met:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 if [ -d $VECTOR_PATH ]; then 51 if [ -d $VECTOR_PATH ]; then
52 echo Test vectors found in $VECTOR_PATH 52 echo Test vectors found in $VECTOR_PATH
53 else 53 else
54 echo No test vectors found 54 echo No test vectors found
55 #Don't make the test fail here because the test vectors 55 #Don't make the test fail here because the test vectors
56 #will be distributed separately 56 #will be distributed separately
57 exit 0 57 exit 0
58 fi 58 fi
59 59
60 if [ ! -x $OPUS_COMPARE ]; then
61 echo ERROR: Compare program not found: $OPUS_COMPARE
62 exit 1
63 fi
64
60 if [ -x $OPUS_DEMO ]; then 65 if [ -x $OPUS_DEMO ]; then
61 echo Decoding with $OPUS_DEMO 66 echo Decoding with $OPUS_DEMO
62 else 67 else
63 echo ERROR: Decoder not found: $OPUS_DEMO 68 echo ERROR: Decoder not found: $OPUS_DEMO
64 exit 1 69 exit 1
65 fi 70 fi
66 71
67 echo "==============" 72 echo "=============="
68 echo Testing mono 73 echo Testing mono
69 echo "==============" 74 echo "=============="
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 exit 1 125 exit 1
121 fi 126 fi
122 echo 127 echo
123 done 128 done
124 129
125 130
126 131
127 echo All tests have passed successfully 132 echo All tests have passed successfully
128 grep quality logs_mono.txt | awk '{sum+=$4}END{print "Average mono quality is", sum/NR, "%"}' 133 grep quality logs_mono.txt | awk '{sum+=$4}END{print "Average mono quality is", sum/NR, "%"}'
129 grep quality logs_stereo.txt | awk '{sum+=$4}END{print "Average stereo quality i s", sum/NR, "%"}' 134 grep quality logs_stereo.txt | awk '{sum+=$4}END{print "Average stereo quality i s", sum/NR, "%"}'
OLDNEW
« no previous file with comments | « src/tansig_table.h ('k') | tests/test_opus_api.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698