tests/pkg_libcoap: migrate to testrunner
This commit is contained in:
parent
6f1b8fea25
commit
c3c0039f24
@ -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;
|
||||
}
|
||||
|
||||
15
tests/pkg_libcoap/tests/01-run.py
Executable file
15
tests/pkg_libcoap/tests/01-run.py
Executable 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))
|
||||
Loading…
x
Reference in New Issue
Block a user