Skip to content

test-case: add verify-ucm-config.sh - #1

Merged
xiulipan merged 1 commit into
thesofproject:masterfrom
libinyang:ucm
Jan 2, 2020
Merged

xiulipan merged 1 commit into
thesofproject:masterfrom
libinyang:ucm

Conversation

@libinyang

Copy link
Copy Markdown
Contributor

This patch add the case of verifying the ucm configuration files.
This patch doesn't support UCMv2. And UCMv2 verifying patch will be
submitted after DUT has supported UCMv2.

Signed-off-by: Libin Yang libin.yang@linux.intel.com

@xiulipan
xiulipan requested a review from Bin-QA December 16, 2019 06:25

@xiulipan xiulipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This key part for this case is for the verbs. I feel almost lost in understand why the process is needed to handle the verbs can you provide some example to help us understand? Maybe add some explanation in the header and show them with -h is a good idea.

Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Outdated
((i=0))
fi
done
IFS="$OLD_IFS"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this line used for? restore the IFS before exit?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, restore it.

Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
Comment thread test-case/verify-ucm-config.sh Resolved
@libinyang

Copy link
Copy Markdown
Contributor Author

It seems the alsaucm test case is not so easy to understand (it's a totally new case for us all). I will try to add as more comments as possible to help others to review the code easily.

This patch add the case of verifying the ucm configuration files.
This patch doesn't support UCMv2. And UCMv2 verifying patch will be
submitted after DUT has supported UCMv2.

Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
@libinyang

Copy link
Copy Markdown
Contributor Author

patch updated

@libinyang

Copy link
Copy Markdown
Contributor Author

ping @xiulipan

@xiulipan xiulipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I read the comments and finally got a simple idea about how UCM is taking effect.

@libinyang

Copy link
Copy Markdown
Contributor Author

ping for merge

@xiulipan

Copy link
Copy Markdown
Contributor

@Bin-QA @keqiaozhang @aiChaoSONG Please help to give a second approval.

@libinyang

Copy link
Copy Markdown
Contributor Author

ping for merge

@xiulipan
xiulipan merged commit c184a41 into thesofproject:master Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants