1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

tests/libfixmath_unittests: migrate to testrunner

This commit is contained in:
Alexandre Abadie 2017-11-11 23:14:57 +01:00
parent f73fcf4f07
commit bc03a0d150
3 changed files with 24 additions and 1 deletions

View File

@ -17,3 +17,6 @@ ifneq (,$(filter native qemu-i386,$(BOARD)))
endif
include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py

View File

@ -40,6 +40,6 @@ int main(void)
RUN(fix16_str_unittests);
RUN(fix16_unittests);
puts("All tests executed.");
puts("SUCCESS");
return 0;
}

View File

@ -0,0 +1,20 @@
#!/usr/bin/env python3
# Copyright (C) 2017 Inria
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child):
child.expect('SUCCESS')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))