Showing the changes to scripts (2 of 3 files). Show all
Unified · Split
| @@ -11,7 +11,11 @@ CFLAGS="-O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronou · 10 unmodified lines | |||
| 11 | 11 | ||
| 12 | echo testing mp4 mode... | 12 | echo testing mp4 mode... |
| 13 | gcc $CFLAGS -DMP4_MODE -o minimp3 minimp3_test.c -lm | 13 | gcc $CFLAGS -DMP4_MODE -o minimp3 minimp3_test.c -lm |
| 14 | scripts/test_mp4_mode.sh | 14 | scripts/test_mode.sh 1 |
| 15 | |||
| 16 | echo testing stream mode... | ||
| 17 | gcc $CFLAGS -DMP4_MODE -o minimp3 minimp3_test.c -lm | ||
| 18 | scripts/test_mode.sh 2 | ||
| 15 | 19 | ||
| 16 | echo testing coverage x86 w sse... | 20 | echo testing coverage x86 w sse... |
| 17 | gcc -coverage -O0 -m32 -std=c89 -msse2 -DMINIMP3_TEST -DMINIMP3_NO_WAV -o minimp3 minimp3_test.c -lm | 21 | gcc -coverage -O0 -m32 -std=c89 -msse2 -DMINIMP3_TEST -DMINIMP3_NO_WAV -o minimp3 minimp3_test.c -lm |
| @@ -5,13 +5,14 @@ CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/ · 4 unmodified lines | |||
| 5 | pushd $CUR_DIR/.. | 5 | pushd $CUR_DIR/.. |
| 6 | 6 | ||
| 7 | APP=./minimp3 | 7 | APP=./minimp3 |
| 8 | MODE=$1 | ||
| 8 | 9 | ||
| 9 | set +e | 10 | set +e |
| 10 | for i in vectors/l3-compl.bit vectors/l3-he_32khz.bit vectors/l3-he_44khz.bit vectors/l3-he_48khz.bit \ | 11 | for i in vectors/l3-compl.bit vectors/l3-he_32khz.bit vectors/l3-he_44khz.bit vectors/l3-he_48khz.bit \ |
| 11 | vectors/l3-hecommon.bit vectors/l3-he_mode.bit vectors/l3-si.bit vectors/l3-si_block.bit vectors/l3-si_huff.bit \ | 12 | vectors/l3-hecommon.bit vectors/l3-he_mode.bit vectors/l3-si.bit vectors/l3-si_block.bit vectors/l3-si_huff.bit \ |
| 12 | vectors/l3-sin1k0db.bit vectors/l3-test45.bit vectors/l3-test46.bit vectors/M2L3_bitrate_16_all.bit \ | 13 | vectors/l3-sin1k0db.bit vectors/l3-test45.bit vectors/l3-test46.bit vectors/M2L3_bitrate_16_all.bit \ |
| 13 | vectors/M2L3_bitrate_22_all.bit vectors/M2L3_bitrate_24_all.bit vectors/M2L3_compl24.bit vectors/M2L3_noise.bit; do | 14 | vectors/M2L3_bitrate_22_all.bit vectors/M2L3_bitrate_24_all.bit vectors/M2L3_compl24.bit vectors/M2L3_noise.bit; do |
| 14 | $APP $i ${i%.*}.pcm | 15 | $APP -m $MODE $i ${i%.*}.pcm |
| 15 | retval=$? | 16 | retval=$? |
| 16 | echo $i exited with code=$retval | 17 | echo $i exited with code=$retval |
| 17 | if [ ! $retval -eq 0 ]; then | 18 | if [ ! $retval -eq 0 ]; then |