aboutsummaryrefslogtreecommitdiff
path: root/e2eaudiotest.py
blob: a1bd6d041996814dd636f1713af1c3816b3c6e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)