| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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, "%"}' |
| OLD | NEW |