aboutsummaryrefslogtreecommitdiff
path: root/e2eaudiotest.py
diff options
context:
space:
mode:
authorbenjamin gaignard <benjamin.gaignard@linaro.org>2012-02-02 10:11:38 +0100
committerbenjamin gaignard <benjamin.gaignard@linaro.org>2012-02-02 10:11:38 +0100
commit88f74b38e44323b874b9fcdd4e33e8142b1ea088 (patch)
treeef4561ab6cfd3ff40891807b836df07476b4f060 /e2eaudiotest.py
parent69fcd26b29c19982918e8b5126e8c9b8ba7dd186 (diff)
downloade2eaudiotest-88f74b38e44323b874b9fcdd4e33e8142b1ea088.tar.gz
add test description in python to prepare integration in LAVA core
Signed-off-by: benjamin gaignard <benjamin.gaignard@linaro.org>
Diffstat (limited to 'e2eaudiotest.py')
-rw-r--r--e2eaudiotest.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/e2eaudiotest.py b/e2eaudiotest.py
new file mode 100644
index 0000000..a1bd6d0
--- /dev/null
+++ b/e2eaudiotest.py
@@ -0,0 +1,23 @@
+# 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
+
+INSTALLSTEPS = ['git clone git://git.linaro.org/people/bgaignard/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 = "^e2eaudiotest:\W+(?P<result>)\W+! Sinewave at 440 detected"
+
+streaminst = TestInstaller(INSTALLSTEPS, deps=DEPS)
+streamrun = TestRunner(RUNSTEPS,default_options=DEFAULT_OPTIONS)
+streamparser = TestParser(PATTERN,
+ appendall={})
+testobj = Test(test_id="e2eaudiotest", installer=streaminst,
+ runner=streamrun, parser=streamparser)