Files
luban-lite-t3e-pro/packages/third-party/minimp3/scripts/test.sh
刘可亮 724d6bf65e v1.1.2
2025-01-08 19:12:06 +08:00

18 lines
288 B
Bash

_FILENAME=${0##*/}
CUR_DIR=${0/${_FILENAME}}
CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/
pushd $CUR_DIR/..
APP=./minimp3
set +e
for i in vectors/*.bit; do
$APP $i ${i%.*}.pcm
retval=$?
echo $i exited with code=$retval
if [ ! $retval -eq 0 ]; then
exit 1
fi
done