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

tests/pkg_libcoap: migrate to testrunner

parent 6f1b8fea
Branches
No related tags found
No related merge requests found
......@@ -14,3 +14,6 @@ USEMODULE += gnrc_sock_udp
USEPKG += libcoap
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py
......@@ -18,6 +18,6 @@
int main(void)
{
puts("Libcoap compiled!");
puts("SUCCESS: Libcoap compiled!");
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('SUCCESS: Libcoap compiled!')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment