From 07314a214f5084edc84d36aae5c249a46f5057f1 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 27 May 2021 12:24:13 +0100 Subject: [PATCH] pass output dump argument to shell script for audio tests --- media/Makefile | 5 ++--- media/audio/mp3/mp3_0.sh | 4 ++-- media/audio/mp3/mp3_1.sh | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/media/Makefile b/media/Makefile index 332eb357..4dd904b6 100644 --- a/media/Makefile +++ b/media/Makefile @@ -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 diff --git a/media/audio/mp3/mp3_0.sh b/media/audio/mp3/mp3_0.sh index 8b8a3b43..eee9feab 100755 --- a/media/audio/mp3/mp3_0.sh +++ b/media/audio/mp3/mp3_0.sh @@ -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} diff --git a/media/audio/mp3/mp3_1.sh b/media/audio/mp3/mp3_1.sh index 6627648a..0614f673 100755 --- a/media/audio/mp3/mp3_1.sh +++ b/media/audio/mp3/mp3_1.sh @@ -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} -- 2.30.2