Skip to content
Snippets Groups Projects
Commit ed0fbdea authored by Martine Lenders's avatar Martine Lenders
Browse files

tests/pkg_cmsis-dsp: provide testscript

parent 530b0239
Branches
No related tags found
No related merge requests found
BOARD ?= samr21-xpro
include ../Makefile.tests_common
TEST_ON_CI_WHITELIST += all
USEPKG += cmsis-dsp
BOARD_WHITELIST := \
......@@ -35,3 +36,6 @@ BOARD_WHITELIST := \
#
include $(RIOTBASE)/Makefile.include
test:
$(CURDIR)/tests/01-run.py
#!/usr/bin/env python3
import os
import sys
def testfunc(child):
child.expect(r"dsp: 0\.903941\d{3}")
child.expect_exact("reference: 0.903941793931839")
child.expect(r"diff: 0.000000[01]\d{2}")
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment