1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #14651 from kaspar030/reduce_tests_float_iterations

This commit is contained in:
Kaspar Schleiser 2020-07-29 14:05:02 +02:00 committed by GitHub
commit 622040ddcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 11 deletions

View File

@ -1,8 +1,3 @@
include ../Makefile.tests_common
# for native we can go do a couple of more operations in reasonable time...
ifneq (,$(filter native,$(BOARD)))
CFLAGS += -DTEST_ITER=100000000
endif
include $(RIOTBASE)/Makefile.include

View File

@ -25,9 +25,9 @@
#include "board.h"
/* as default we run the test 100k times */
/* as default we run the test 1k times */
#ifndef TEST_ITER
#define TEST_ITER (100000UL)
#define TEST_ITER (1000UL)
#endif
#define STEP (0.1)

View File

@ -9,13 +9,10 @@
import sys
from testrunner import run
# It takes 35 seconds on msp430, so add some margin
TIMEOUT = 45
def testfunc(child):
child.expect_exact("Testing floating point arithmetic...")
child.expect_exact("[SUCCESS]", timeout=TIMEOUT)
child.expect_exact("[SUCCESS]")
if __name__ == "__main__":