tests/pkg_libcoap: migrate to testrunner

This commit is contained in:
Alexandre Abadie 2017-11-10 09:30:10 +01:00
parent 6f1b8fea25
commit c3c0039f24
3 changed files with 19 additions and 1 deletions

View File

@ -14,3 +14,6 @@ USEMODULE += gnrc_sock_udp
USEPKG += libcoap USEPKG += libcoap
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py

View File

@ -18,6 +18,6 @@
int main(void) int main(void)
{ {
puts("Libcoap compiled!"); puts("SUCCESS: Libcoap compiled!");
return 0; return 0;
} }

View File

@ -0,0 +1,15 @@
#!/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))