diff options
author | Clément Bœsch <u@pkh.me> | 2015-01-19 22:56:59 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-21 11:17:45 +0200 |
commit | a982c5d74fbc7ff5bd2f2f73af61ae48e9b1bcc6 (patch) | |
tree | d59034c9a0adde267402b96735522bede478b9b5 /tests | |
parent | a06b0b1295c51d100101e0ca0434e199ad6de6b5 (diff) | |
download | ffmpeg-a982c5d74fbc7ff5bd2f2f73af61ae48e9b1bcc6.tar.gz |
tests: drop bc dependency
We already have a dependency on awk and bc is sometimes not found in the
base system.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/fate-run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 91de177a2a..f8de18290e 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -38,7 +38,7 @@ target_path(){ # $1=value1, $2=value2, $3=threshold # prints 0 if absolute difference between value1 and value2 is <= threshold compare(){ - echo "scale=2; v = $1 - $2; if (v < 0) v = -v; if (v > $3) r = 1; r" | bc + awk "BEGIN { v = $1 - $2; printf ((v < 0 ? -v : v) > $3) }" } do_tiny_psnr(){ |