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

tests/pkg_micro-ecc: migrate to testrunner

parent 742da351
No related branches found
No related tags found
No related merge requests found
......@@ -5,3 +5,6 @@ USEMODULE += hashes
USEPKG += micro-ecc
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py
......@@ -164,10 +164,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 '
'without 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