Unified · Split
| @@ -6,8 +6,11 @@ pushd $CUR_DIR/.. · 5 unmodified lines | ||
| 6 | 6 | |
| 7 | 7 | set -e |
| 8 | 8 | |
| 9 | +CFLAGS="-O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 10 | +-ffunction-sections -fdata-sections -Wl,--gc-sections" | |
| 11 | + | |
| 9 | 12 | echo testing mp4 mode... |
| 10 | −gcc -O2 -std=c89 -DMP4_MODE -o minimp3 minimp3_test.c -lm | |
| 13 | +gcc $CFLAGS -DMP4_MODE -o minimp3 minimp3_test.c -lm | |
| 11 | 14 | scripts/test_mp4_mode.sh |
| 12 | 15 | |
| 13 | 16 | echo testing coverage x86 w sse... |
| @@ -20,44 +23,36 @@ set -e · 6 unmodified lines | ||
| 20 | 23 | gcov minimp3_test.c |
| 21 | 24 | |
| 22 | 25 | echo testing x86 w/o sse... |
| 23 | −gcc -O2 -m32 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 24 | −-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3 minimp3_test.c -lm | |
| 26 | +gcc $CFLAGS -m32 -o minimp3 minimp3_test.c -lm | |
| 25 | 27 | scripts/test.sh |
| 26 | 28 | |
| 27 | 29 | echo testing x64... |
| 28 | −gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 29 | −-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3 minimp3_test.c -lm | |
| 30 | +gcc $CFLAGS -o minimp3 minimp3_test.c -lm | |
| 31 | +scripts/test.sh | |
| 32 | + | |
| 33 | +echo testing x64 with float output... | |
| 34 | +gcc $CFLAGS -DMINIMP3_FLOAT_OUTPUT -o minimp3 minimp3_test.c -lm | |
| 30 | 35 | scripts/test.sh |
| 31 | 36 | |
| 32 | 37 | echo testing arm w/o neon... |
| 33 | −arm-none-eabi-gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 34 | −-mthumb -mcpu=arm9e \ | |
| 35 | −-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_arm minimp3_test.c --specs=rdimon.specs -lm | |
| 38 | +arm-none-eabi-gcc $CFLAGS -mthumb -mcpu=arm9e -o minimp3_arm minimp3_test.c --specs=rdimon.specs -lm | |
| 36 | 39 | qemu-arm ./minimp3_arm |
| 37 | 40 | |
| 38 | 41 | echo testing arm w neon... |
| 39 | −arm-none-eabi-gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 40 | −-marm -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=softfp \ | |
| 41 | −-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_arm minimp3_test.c --specs=rdimon.specs -lm | |
| 42 | +arm-none-eabi-gcc $CFLAGS -marm -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=softfp -o minimp3_arm minimp3_test.c --specs=rdimon.specs -lm | |
| 42 | 43 | qemu-arm ./minimp3_arm |
| 43 | 44 | |
| 44 | 45 | echo testing arm64... |
| 45 | −aarch64-linux-gnu-gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 46 | −-static -march=armv8-a \ | |
| 47 | −-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_arm minimp3_test.c -lm | |
| 46 | +aarch64-linux-gnu-gcc $CFLAGS -static -march=armv8-a -o minimp3_arm minimp3_test.c -lm | |
| 48 | 47 | qemu-aarch64 ./minimp3_arm |
| 49 | 48 | |
| 50 | 49 | echo testing powerpc... |
| 51 | −powerpc-linux-gnu-gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 52 | −-static \ | |
| 53 | −-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_ppc minimp3_test.c -lm | |
| 50 | +powerpc-linux-gnu-gcc $CFLAGS -static -o minimp3_ppc minimp3_test.c -lm | |
| 54 | 51 | qemu-ppc ./minimp3_ppc |
| 55 | 52 | |
| 56 | 53 | if [ ! "$TRAVIS" = "true" ]; then |
| 57 | 54 | echo testing powerpc64... |
| 58 | −powerpc64-linux-gnu-gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 59 | −-static \ | |
| 60 | −-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_ppc minimp3_test.c -lm | |
| 55 | +powerpc64-linux-gnu-gcc $CFLAGS -static -o minimp3_ppc minimp3_test.c -lm | |
| 61 | 56 | qemu-ppc64 ./minimp3_ppc |
| 62 | 57 | fi |
| 63 | 58 | |