Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

Commit 1dcac32

Browse files
ranj063lrgirdwo
authored andcommitted
topology: make m4 filenames dai type agnostic
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent a913f77 commit 1dcac32

5 files changed

Lines changed: 9 additions & 4 deletions

File tree

topology/test/tplg-build.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export M4PATH="../:../m4:../common"
1212

1313
# Simple component test cases
1414
# can be used on components with 1 sink and 1 source.
15-
SIMPLE_TESTS=(test-ssp test-capture-ssp test-playback-ssp)
16-
TONE_TEST=test-tone-playback-ssp
17-
DMIC_TEST=test-capture-ssp
15+
SIMPLE_TESTS=(test-all test-capture test-playback)
16+
TONE_TEST=test-tone-playback
17+
DMIC_TEST=test-capture
1818
TEST_STRINGS=""
1919
M4_STRINGS=""
2020
# process m4 simple tests -
@@ -40,12 +40,17 @@ function simple_test {
4040
fi
4141
for i in ${TESTS[@]}
4242
do
43-
TFILE="$i$6-${12}-$2-$4-$7-48k-$((${11} / 1000))k-$1"
4443
if [ "$USE_XARGS" == "yes" ]
4544
then
4645
#if DAI type is SSP, define the SSP specific params
4746
if [ $5 == "SSP" ]
4847
then
48+
if [ $i == "test-all" ]
49+
then
50+
TFILE="test-ssp$6-${12}-$2-$4-$7-48k-$((${11} / 1000))k-$1"
51+
else
52+
TFILE="$i-ssp$6-${12}-$2-$4-$7-48k-$((${11} / 1000))k-$1"
53+
fi
4954
#create input string for batch m4 processing
5055
M4_STRINGS+="-DTEST_PIPE_NAME=$2,-DTEST_DAI_LINK_NAME=$3\
5156
-DTEST_DAI_PORT=$6,-DTEST_DAI_FORMAT=$7\

0 commit comments

Comments
 (0)