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:
commit
622040ddcf
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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__":
|
||||
|
Loading…
Reference in New Issue
Block a user