Repository navigation
Conversation
This will be helpful for simultaneous high stress test to find concurrent and high workload stability issues. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
| @@ -0,0 +1,30 @@ | |||
| aplay -Dhw:0,1 -f dat -c 2 /dev/zero & | |||
There was a problem hiding this comment.
Each test will need comments at the top describing what it does and any arguments it takes. Also SPDX style comment stating BSD licence. The file name here is not very meaningful either, this test does a duplex stream on 0,1 and a playback on 0,0 e.g. "test-duplex-plus-playback.sh" is probably a better name.
| # Get its PID | ||
| PID_1=$! | ||
|
|
||
| arecord -Dhw:0,1 -f dat -c 2 /dev/null & |
There was a problem hiding this comment.
The duplex PCM should be passed as an arg and so should playback PCM.
| PID_3=$! | ||
|
|
||
| # Wait for 5 seconds | ||
| sleep 5 |
There was a problem hiding this comment.
sleep time should be an arg (it can be fractional)
| @@ -0,0 +1,12 @@ | |||
| i=0 | |||
There was a problem hiding this comment.
Needs comments, licence etc. Better name is "test-iterate.sh"
| @@ -0,0 +1,12 @@ | |||
| i=0 | |||
| MAXLOOPS=1000 | |||
| else | ||
| exit 1 | ||
| fi | ||
| sleep 1 |
There was a problem hiding this comment.
sleep should also be argument.
There was a problem hiding this comment.
and by default I would make it 0.1 seconds.
| MAXLOOPS=1000 | ||
| while [ $i -lt $MAXLOOPS ]; do | ||
| echo "iterate $i ..." | ||
| ./sim.sh |
There was a problem hiding this comment.
test we run should be argument.
|
@keyonjie ping. |
|
@lgirdwood I sent this PR only for sharing what I used for simultaneous pipelines stress test, it was not so formal and configurable yet. |
|
Let me close this one, Keqiao will send new one later. |
This will be helpful for simultaneous high stress test to find
concurrent and high workload stability issues.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com