=== modified file 'doc/changes.rst'
@@ -18,6 +18,7 @@
* Add new GLMark2 ES2 test (glmark2-es2)
* Add new render-bench test
* Add spandex-gles2 test
+ * Add e2eaudiotest test
.. _version_0_4:
=== modified file 'doc/tests.rst'
@@ -8,6 +8,7 @@
* `bluetooth-enablement`_
* `bootchart`_
+ * `e2eaudiotest`_
* `firefox`_
* `glmemperf`_
* `gmpbench`_
@@ -36,6 +37,10 @@
+++++++++
.. automodule:: lava_test.test_definitions.bootchart
+e2eaudiotest
+++++++++++++
+.. automodule:: lava_test.test_definitions.e2eaudiotest
+
firefox
+++++++
.. automodule:: lava_test.test_definitions.firefox
=== modified file 'lava_test/core/providers.py'
@@ -32,6 +32,7 @@
'bluetooth-enablement',
'bootchart',
'insanity',
+ 'e2eaudiotest',
'firefox',
'glmemperf',
'gmpbench',
=== added file 'lava_test/test_definitions/e2eaudiotest.py'
@@ -0,0 +1,34 @@
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from lava_test.core.installers import TestInstaller
+from lava_test.core.parsers import TestParser
+from lava_test.core.runners import TestRunner
+from lava_test.core.tests import Test
+
+"""
+This program is a simple test for testing the audio device on a linux host.
+The application, testfreq, will test the audio device by playing a sine wave
+at A440 and then sampling the input for that frequency - input is coupled to
+output with a cable.
+
+**URL:** http://git.linaro.org/gitweb?p=people/kurt-r-taylor/e2eaudiotest.git;a=tree
+
+**Default options:** None
+"""
+
+INSTALLSTEPS = ['git clone git://git.linaro.org/people/kurt-r-taylor/e2eaudiotest.git']
+DEPS = ['git-core', 'libasound2-dev', 'libfftw3-dev', 'gcc']
+DEFAULT_OPTIONS = ""
+RUNSTEPS = ['cd e2eaudiotest; gcc testfreq.c utils_alsa.c -lasound -lfftw3 -o testfreq ; ./e2eaudiotest.sh']
+PATTERN = "^(?P<test_case_id>\w+):\W+(?P<result>\w+)\W+(?P<measurement>\d+)\W+sinewave"
+
+e2einst = TestInstaller(INSTALLSTEPS, deps=DEPS)
+e2erun = TestRunner(RUNSTEPS,default_options=DEFAULT_OPTIONS)
+e2eparser = TestParser(PATTERN,
+ appendall={'units':'Hz'})
+testobj = Test(test_id="e2eaudiotest", installer=e2einst,
+ runner=e2erun, parser=e2eparser)