alsabat: test scripts and reference amixer config files
v2 cover alsabat: test scripts and reference amixer config files
From: Focus Luo <[email protected]>
The patch set supplies some automated test scripts and reference amixer config files for linux audio driver testing by using alsa-bat as test tool on Intel platforms.
The first patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog audio and display audio(HDMI/DP) interface.
The second patch supplies some amixer reference config file on Intel platforms.
Focus Luo (2):
alsabat: automation test scripts
alsabat: add amixer config files
bat/Makefile.am | 1 + bat/tests/Makefile.am | 11 + bat/tests/README | 32 ++ bat/tests/alsabat_main.sh | 178 ++++++++++ bat/tests/analog_audio_playback_and_capture.sh | 84 +++++ bat/tests/asound_state/Makefile.am | 6 + bat/tests/asound_state/asound.state.Broadwell | 439 +++++++++++++++++++++++++ bat/tests/asound_state/asound.state.Haswell | 342 +++++++++++++++++++ bat/tests/asound_state/asound.state.Skylake | 437 ++++++++++++++++++++++++ bat/tests/dp_audio_playback.sh | 83 +++++ bat/tests/dp_audio_subdevice_number.sh | 68 ++++ bat/tests/hdmi_audio_playback.sh | 81 +++++ bat/tests/hdmi_audio_subdevice_number.sh | 65 ++++ bat/tests/map_test_case | 8 + configure.ac | 3 +- 15 files changed, 1837 insertions(+), 1 deletion(-) create mode 100644 bat/tests/Makefile.am create mode 100644 bat/tests/README create mode 100755 bat/tests/alsabat_main.sh create mode 100755 bat/tests/analog_audio_playback_and_capture.sh create mode 100644 bat/tests/asound_state/Makefile.am create mode 100644 bat/tests/asound_state/asound.state.Broadwell create mode 100644 bat/tests/asound_state/asound.state.Haswell create mode 100644 bat/tests/asound_state/asound.state.Skylake create mode 100755 bat/tests/dp_audio_playback.sh create mode 100755 bat/tests/dp_audio_subdevice_number.sh create mode 100755 bat/tests/hdmi_audio_playback.sh create mode 100755 bat/tests/hdmi_audio_subdevice_number.sh create mode 100644 bat/tests/map_test_case
Signature · 1 line
1.9.1
PATCH v2 1/2 alsabat: automation test scripts
From: Focus Luo <[email protected]>
This patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog and display(HDMI/DP) audio test.
The package needs the alsa-utils, alsa-lib installed environment.
--- bat/Makefile.am | 1 + bat/tests/Makefile.am | 10 ++ bat/tests/README | 32 +++++ bat/tests/alsabat_main.sh | 178 +++++++++++++++++++++++++ bat/tests/analog_audio_playback_and_capture.sh | 84 ++++++++++++ bat/tests/dp_audio_playback.sh | 83 ++++++++++++ bat/tests/dp_audio_subdevice_number.sh | 68 ++++++++++ bat/tests/hdmi_audio_playback.sh | 81 +++++++++++ bat/tests/hdmi_audio_subdevice_number.sh | 65 +++++++++ bat/tests/map_test_case | 8 ++ configure.ac | 3 +- 11 files changed, 612 insertions(+), 1 deletion(-) create mode 100644 bat/tests/Makefile.am create mode 100644 bat/tests/README create mode 100755 bat/tests/alsabat_main.sh create mode 100755 bat/tests/analog_audio_playback_and_capture.sh create mode 100755 bat/tests/dp_audio_playback.sh create mode 100755 bat/tests/dp_audio_subdevice_number.sh create mode 100755 bat/tests/hdmi_audio_playback.sh create mode 100755 bat/tests/hdmi_audio_subdevice_number.sh create mode 100644 bat/tests/map_test_case
bat/Makefile.am +1 -0
@@ -1,3 +1,4 @@ +SUBDIRS=tests bin_PROGRAMS = alsabat man_MANS = alsabat.1 EXTRA_DIST = alsabat.1 alsabat-test.sh
bat/tests/Makefile.am new file +10 -0
@@ -0,0 +1,10 @@ +alsabat_script_files = analog_audio_playback_and_capture.sh \ + dp_audio_playback.sh \ + dp_audio_subdevice_number.sh \ + hdmi_audio_playback.sh \ + hdmi_audio_subdevice_number.sh \ + map_test_case \ + README + +EXTRA_DIST = \ + $(alsabat_script_files)
bat/tests/README new file +32 -0
@@ -0,0 +1,32 @@ + + automated test scripts for linux audio driver + based on alsa-lib interface by using alsabat +=============================================================================== + +This package contains the test scripts for linux audio driver based on +alsa-lib interface by using alsabat. +It supports analog and display(HDMI/DP) audio test. +The package needs the alsa-utils, alsa-lib installed environment. + +alsabat_main.sh + - the main entrance test script, + it will call the other scripts to run the tests + (test result will save in the ./log/ folder) +analog_audio_playback_and_capture.sh + - analog audio test script (please to loopback the + analog audio output to analog audio input) +hdmi_audio_playback.sh + - hdmi audio test script (please to loopback the hdmi audio output + to analog audio input) +dp_audio_playback.sh + - dp audio test script (please to loopback the dp audio + output to analog audio input) +map_test_case + - to map the test suite/cases to a test script +asound_state/ + - some asound.state config reference files + based on different platforms + + Focus Luo <[email protected]> + Wang,Jinliang <[email protected]> + Zhang,Keqiao <[email protected]>
bat/tests/alsabat_main.sh new file +178 -0
178 lines not on this page · raw message
bat/tests/analog_audio_playback_and_capture.sh new file +84 -0
84 lines not on this page · raw message
bat/tests/dp_audio_playback.sh new file +83 -0
83 lines not on this page · raw message
bat/tests/dp_audio_subdevice_number.sh new file +68 -0
68 lines not on this page · raw message
bat/tests/hdmi_audio_playback.sh new file +81 -0
81 lines not on this page · raw message
bat/tests/hdmi_audio_subdevice_number.sh new file +65 -0
65 lines not on this page · raw message
bat/tests/map_test_case new file +8 -0
@@ -0,0 +1,8 @@ +# Analog audio basic test +verify_Analog_audio_playback_and_capture="$ABAT_TEST_PATH/analog_audio_playback_and_capture.sh" + +# Display audio basic test cases - for HDMI +verify_HDMI_audio_playback="$ABAT_TEST_PATH/hdmi_audio_playback.sh" + +# Display audio basic test cases - for DP +verify_DP_audio_playback="$ABAT_TEST_PATH/dp_audio_playback.sh"
configure.ac +2 -1
@@ -411,7 +411,8 @@ AC_OUTPUT(Makefile alsactl/Makefile alsactl/init/Makefile \ m4/Makefile po/Makefile.in \ alsaconf/alsaconf alsaconf/Makefile \ alsaconf/po/Makefile \ - alsaucm/Makefile topology/Makefile bat/Makefile \ + alsaucm/Makefile topology/Makefile \ + bat/Makefile bat/tests/Makefile \ aplay/Makefile include/Makefile iecset/Makefile utils/Makefile \ utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile \ seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile \
Signature · 1 line
1.9.1
PATCH v2 2/2 alsabat: add amixer config files
In reply to [email protected]From: Focus Luo <[email protected]>
This patch includes the reference asound.state config files on Intel Skylake, Broadwell and Hsawell platforms
--- bat/tests/Makefile.am | 1 + bat/tests/asound_state/Makefile.am | 6 + bat/tests/asound_state/asound.state.Broadwell | 439 ++++++++++++++++++++++++++ bat/tests/asound_state/asound.state.Haswell | 342 ++++++++++++++++++++ bat/tests/asound_state/asound.state.Skylake | 437 +++++++++++++++++++++++++ configure.ac | 2 +- 6 files changed, 1226 insertions(+), 1 deletion(-) create mode 100644 bat/tests/asound_state/Makefile.am create mode 100644 bat/tests/asound_state/asound.state.Broadwell create mode 100644 bat/tests/asound_state/asound.state.Haswell create mode 100644 bat/tests/asound_state/asound.state.Skylake
bat/tests/Makefile.am +1 -0
@@ -1,3 +1,4 @@ +SUBDIRS=asound_state alsabat_script_files = analog_audio_playback_and_capture.sh \ dp_audio_playback.sh \ dp_audio_subdevice_number.sh \
bat/tests/asound_state/Makefile.am new file +6 -0
@@ -0,0 +1,6 @@ +alsabat_cfg_files = asound.state.Broadwell \ + asound.state.Haswell \ + asound.state.Skylake + +EXTRA_DIST = \ + $(alsabat_cfg_files)
bat/tests/asound_state/asound.state.Broadwell new file +439 -0
439 lines not on this page · raw message
bat/tests/asound_state/asound.state.Haswell new file +342 -0
342 lines not on this page · raw message
bat/tests/asound_state/asound.state.Skylake new file +437 -0
437 lines not on this page · raw message
configure.ac +1 -1
@@ -412,7 +412,7 @@ AC_OUTPUT(Makefile alsactl/Makefile alsactl/init/Makefile \ alsaconf/alsaconf alsaconf/Makefile \ alsaconf/po/Makefile \ alsaucm/Makefile topology/Makefile \ - bat/Makefile bat/tests/Makefile \ + bat/Makefile bat/tests/Makefile bat/tests/asound_state/Makefile \ aplay/Makefile include/Makefile iecset/Makefile utils/Makefile \ utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile \ seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile \
Signature · 1 line
1.9.1
Ok, please send upstream now
Quoted 37 lines · On Mon, 2016-08-15 at 13:24 +0800, [email protected] wrote:
From: Focus Luo <[email protected]>
The patch set supplies some automated test scripts and reference amixer config files for linux audio driver testing by using alsa-bat as test tool on Intel platforms.
The first patch includes automated test scripts for linux audio driver based on alsa-lib interface by using alsabat as test tool. It supports analog audio and display audio(HDMI/DP) interface.
The second patch supplies some amixer reference config file on Intel platforms.
Focus Luo (2):
alsabat: automation test scripts
alsabat: add amixer config filesbat/Makefile.am | 1 + bat/tests/Makefile.am | 11 + bat/tests/README | 32 ++ bat/tests/alsabat_main.sh | 178 ++++++++++ bat/tests/analog_audio_playback_and_capture.sh | 84 +++++ bat/tests/asound_state/Makefile.am | 6 + bat/tests/asound_state/asound.state.Broadwell | 439 +++++++++++++++++++++++++ bat/tests/asound_state/asound.state.Haswell | 342 +++++++++++++++++++ bat/tests/asound_state/asound.state.Skylake | 437 ++++++++++++++++++++++++ bat/tests/dp_audio_playback.sh | 83 +++++ bat/tests/dp_audio_subdevice_number.sh | 68 ++++ bat/tests/hdmi_audio_playback.sh | 81 +++++ bat/tests/hdmi_audio_subdevice_number.sh | 65 ++++ bat/tests/map_test_case | 8 + configure.ac | 3 +- 15 files changed, 1837 insertions(+), 1 deletion(-) create mode 100644 bat/tests/Makefile.am create mode 100644 bat/tests/README create mode 100755 bat/tests/alsabat_main.sh create mode 100755 bat/tests/analog_audio_playback_and_capture.sh create mode 100644 bat/tests/asound_state/Makefile.am
Quoted 9 lines
create mode 100644 bat/tests/asound_state/asound.state.Broadwell create mode 100644 bat/tests/asound_state/asound.state.Haswell create mode 100644 bat/tests/asound_state/asound.state.Skylake create mode 100755 bat/tests/dp_audio_playback.sh create mode 100755 bat/tests/dp_audio_subdevice_number.sh create mode 100755 bat/tests/hdmi_audio_playback.sh create mode 100755 bat/tests/hdmi_audio_subdevice_number.sh create mode 100644 bat/tests/map_test_case
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.