Skip to content
Snippets Groups Projects
Commit 6f1b8fea authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

tests/pkg_micro-ecc-with-hwrng: migrate to testrunner

parent 12f6b629
No related branches found
No related tags found
No related merge requests found
......@@ -8,3 +8,6 @@ USEPKG += micro-ecc
CFLAGS += -DFEATURE_PERIPH_HWRNG
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py
......@@ -113,10 +113,12 @@ int main(void)
printf(" done with %d error(s)\n", errorc);
if (errorc == 0) {
return 0;
if (errorc) {
puts("FAILURE");
return 1;
}
else {
return 1;
puts("SUCCESS");
return 0;
}
}
#!/usr/bin/env python3
import os
import sys
import math
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child):
child.expect_exact('micro-ecc compiled!')
child.expect_exact('Testing 16 random private key pairs and signature '
'using HWRNG')
child.expect_exact('................ done with 0 error(s)')
child.expect_exact('SUCCESS')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=60))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment