Skip to content

Enable test bench test in simple scripts and test in Travis CI#2665

Merged
lgirdwood merged 2 commits into
thesofproject:masterfrom
xiulipan:pr/testbench
Apr 3, 2020
Merged

Enable test bench test in simple scripts and test in Travis CI#2665
lgirdwood merged 2 commits into
thesofproject:masterfrom
xiulipan:pr/testbench

Conversation

@xiulipan
Copy link
Copy Markdown
Contributor

Update the host-testbench scripts to test 3 simple testbench
volume, src and eqiir.
Enable Travis CI test for the testbench with this script.

Comment thread tools/test/audio/comp_run.sh Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Oh, I see now that I've been generating the topologies into wrong directory. Thanks!

Copy link
Copy Markdown
Collaborator

@singalsu singalsu left a comment

Choose a reason for hiding this comment

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

Good work, thanks!

Have run shellcheck (apt-get install shellcheck) for the bash scripts? It may help to find quotation issues etc. if there are any.

Copy link
Copy Markdown
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@xiulipan is it good to merge now ? I assume the test bench fail on Travis is known ?

@xiulipan
Copy link
Copy Markdown
Contributor Author

@lgirdwood I haven't test the Travis scripts yet, it seem some issue with the test toplogy build here.
I will send a fix. @singalsu I think your fix for testbench is merged?

Enable 3 simple test with host-testbench:
volume, src and eqiir
Usage:
./scripts/build-tools.sh -t
./scripts/host-build-all.sh
./scripts/host-testbench.sh

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
build test topology.
builg host-testbench
Test with host-testbench.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
@xiulipan
Copy link
Copy Markdown
Contributor Author

@singalsu @lgirdwood updated and Travis test passed.

@singalsu
Copy link
Copy Markdown
Collaborator

I just checked, testbench works for me too.

Copy link
Copy Markdown
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Excellent, thanks @xiulipan !

Copy link
Copy Markdown
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@zrombel any idea why Internal CI would fail here, I dont think it tests the testbench ?

@jajanusz
Copy link
Copy Markdown
Contributor

jajanusz commented Apr 2, 2020

@zrombel any idea why Internal CI would fail here, I dont think it tests the testbench ?

I've reran this test, cos it looked like some random issue.

@lgirdwood
Copy link
Copy Markdown
Member

CI known issue.

@lgirdwood lgirdwood merged commit 1ecf435 into thesofproject:master Apr 3, 2020
@marc-hb
Copy link
Copy Markdown
Collaborator

marc-hb commented Apr 8, 2020

@singalsu , @xiulipan is there a plan for host-testbench.sh not to exit success 0 on failure? Until it does the interest of running it in CI seems limited.

$ ./scripts/host-testbench.sh | grep -i fail; echo $?
du: cannot access 'volume_out.raw': No such file or directory
volume test failed!
du: cannot access 'volume_out.raw': No such file or directory
eqiir test failed!

$ ./scripts/host-testbench.sh ; echo $?
0   #   <------

@xiulipan
Copy link
Copy Markdown
Contributor Author

xiulipan commented Apr 9, 2020

@marc-hb Good catch, I think I ignore some case here. Will set -e work here?

Comment thread scripts/host-testbench.sh
#!/bin/bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation. All rights reserved.

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.

@marc-hb Add set -e here?

@marc-hb
Copy link
Copy Markdown
Collaborator

marc-hb commented Apr 9, 2020

@xiulipan I filed #2752, we can discuss there.

In the mean time let's stop showing a green box in Travis: #2753

Have run shellcheck (apt-get install shellcheck) for the bash scripts?

Apparently not..

Comment thread .travis.yml
env: PLATFORM=imx8m
- stage: testbench
script:
- ./scripts/docker-run.sh ./scripts/build-tools.sh -t &> /dev/null
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please never ever discard all output like this, especially not in CI where the exact configuration can be difficult to reproduce locally. If the script is too verbose then its verbosity can be adjusted but discarding everything is throwing the baby with the bathwater.

Fixed in #3364

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.

6 participants