aboutsummaryrefslogtreecommitdiff
path: root/e2eaudiotest.py
diff options
context:
space:
mode:
Diffstat (limited to 'e2eaudiotest.py')
-rw-r--r--e2eaudiotest.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/e2eaudiotest.py b/e2eaudiotest.py
index a1bd6d0..3f9d701 100644
--- a/e2eaudiotest.py
+++ b/e2eaudiotest.py
@@ -13,11 +13,11 @@ INSTALLSTEPS = ['git clone git://git.linaro.org/people/bgaignard/e2eaudiotest.gi
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"
+PATTERN = "^(?P<test_case_id>\w+):\W+(?P<result>\w+)\W+(?P<measurement>\d+)\W+sinewave"
-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)
+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)