pass output dump argument to shell script for audio tests
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 27 May 2021 11:24:13 +0000 (12:24 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 27 May 2021 11:24:13 +0000 (12:24 +0100)
media/Makefile
media/audio/mp3/mp3_0.sh
media/audio/mp3/mp3_1.sh

index 332eb35753088ab7feca8fbb151303ba9468565c..4dd904b6ba48f3fcae3b1ab04e1b0479e460abd4 100644 (file)
@@ -39,11 +39,10 @@ wget:
 tests: $(OBJ)
        @echo audio/mp3_0
        for i in `seq 0 1000 9000`; do \
-               audio/mp3/mp3_0.sh $$i || exit 1; \
+               audio/mp3/mp3_0.sh $$i $$DUMP$$i || exit 1; \
        done
-
        @echo audio/mp3_1
        for i in `seq 0 23`; do \
-               audio/mp3/mp3_1.sh $$i || exit 1; \
+               audio/mp3/mp3_1.sh $$i $$DUMP$$i || exit 1; \
        done
 
index 8b8a3b43782f022288536a1b82a34717e62fa2ff..eee9feabf37b41ac04fdcc4083d89f4208a28ed1 100755 (executable)
@@ -4,6 +4,6 @@ pypowersim -g audio/mp3/mp3_0.gpr \
        -s common.spr \
        -l data/audio/mp3/mp3_0_data/buf${1}:0x100000 \
        -l data/audio/mp3/mp3_0_data/win0:0x200000 \
-       -d ${DUMP}:0x400000:128 \
+       -d ${2}:0x400000:128 \
        -i audio/mp3/mp3_0_apply_window_float.bin
-cmp ${DUMP} data/audio/mp3/mp3_0_data/samples${1}
+cmp ${2} data/audio/mp3/mp3_0_data/samples${1}
index 6627648a87d861e3a67087bc5dbedd38cf92ac56..0614f673ad5ffdc72a866d5d078a59c2e017e905 100755 (executable)
@@ -6,6 +6,6 @@ pypowersim -g audio/mp3/mp3_1.gpr \
        -l data/audio/mp3/mp3_1_data/buf${1}:0x200000 \
        -l data/audio/mp3/mp3_1_data/in${1}:0x300000 \
        -l data/audio/mp3/mp3_1_data/win${1}:0x400000 \
-       -d ${DUMP}:0x100000:2304 \
+       -d ${2}:0x100000:2304 \
        -i audio/mp3/mp3_1_imdct36_float.bin
-cmp ${DUMP} data/audio/mp3/mp3_1_data/out${1}
+cmp ${2} data/audio/mp3/mp3_1_data/out${1}