diff --git a/tests/xtimer_now32_overflow/Makefile b/tests/xtimer_now32_overflow/Makefile deleted file mode 100644 index 7f8b991ddf94..000000000000 --- a/tests/xtimer_now32_overflow/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -include ../Makefile.tests_common - -USEMODULE += xtimer - -DISABLE_MODULE += auto_init_xtimer - -include $(RIOTBASE)/Makefile.include diff --git a/tests/xtimer_now32_overflow/README.md b/tests/xtimer_now32_overflow/README.md deleted file mode 100644 index 178c6d2390d8..000000000000 --- a/tests/xtimer_now32_overflow/README.md +++ /dev/null @@ -1,6 +0,0 @@ -Description -=========== - -This is a regression test for when `xtimer_now64()` becomes greater than -`UINT32_MAX` and the internal state machine fails to update the timers state -correctly. diff --git a/tests/xtimer_now32_overflow/app.config.test b/tests/xtimer_now32_overflow/app.config.test deleted file mode 100644 index 396443c12fe8..000000000000 --- a/tests/xtimer_now32_overflow/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_XTIMER=y -CONFIG_MODULE_AUTO_INIT_XTIMER=n diff --git a/tests/xtimer_now32_overflow/main.c b/tests/xtimer_now32_overflow/main.c deleted file mode 100644 index 0d58e42ea927..000000000000 --- a/tests/xtimer_now32_overflow/main.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2020 Kaspar Schleiser - * - * 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. - */ - -/** - * @ingroup tests - * @{ - * - * @file - * @brief timer test application - * - * @author Kaspar Schleiser - * - * @} - */ - -#include - -#include "xtimer.h" - -static void _callback(void *arg) -{ - (void)arg; -} - -static xtimer_t t1 = { .callback=_callback }; -static xtimer_t t2 = { .callback=_callback }; - -int main(void) -{ - /* ensure that xtimer_now64() is greater than UINT32_MAX - * and the upper 32bit of xtimer_now64() equal 1 */ - _xtimer_current_time = (1LLU << 32U); - xtimer_init(); - - /* set to 100s (far in the future) */ - xtimer_set(&t1, 100000000LU); - xtimer_set(&t2, 100000000LU); - - /* sleep 1 ms (uses a third xtimer internally). - * shooting this timer did set all following short timer's to have a - * long_start_time of 0. The timer_callback main loop would correct the - * timer_list_head, but not the following. - */ - xtimer_usleep(1000); - - if (t2.long_start_time == 1) { - puts("[SUCCESS]"); - } - else { - puts("[FAILED]"); - } - - return 0; -} diff --git a/tests/xtimer_now32_overflow/tests/01-run.py b/tests/xtimer_now32_overflow/tests/01-run.py deleted file mode 100755 index 3a855f5e58d8..000000000000 --- a/tests/xtimer_now32_overflow/tests/01-run.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python3 - -# Copyright (C) 2020 Freie Universität Berlin -# -# 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 sys -from testrunner import run - - -def testfunc(child): - child.expect_exact("[SUCCESS]") - - -if __name__ == "__main__": - sys.exit(run(testfunc)) diff --git a/tests/xtimer_now64_continuity/Makefile b/tests/xtimer_now64_continuity/Makefile deleted file mode 100644 index 6c3bc23fa14a..000000000000 --- a/tests/xtimer_now64_continuity/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -include ../Makefile.tests_common - -USEMODULE += fmt -USEMODULE += xtimer - -# This test randomly fails on `native` so disable it from CI -TEST_ON_CI_BLACKLIST += native - -include $(RIOTBASE)/Makefile.include diff --git a/tests/xtimer_now64_continuity/README.md b/tests/xtimer_now64_continuity/README.md deleted file mode 100644 index 0aa581f5dd52..000000000000 --- a/tests/xtimer_now64_continuity/README.md +++ /dev/null @@ -1,6 +0,0 @@ -Description -=========== - -This test measures the difference of two consecutive calls to xtimer_now64() -100k times. If the max or average difference is larger than 1000us the test -fails, otherwise it succeeds. diff --git a/tests/xtimer_now64_continuity/app.config.test b/tests/xtimer_now64_continuity/app.config.test deleted file mode 100644 index 8f28e0ef2eb3..000000000000 --- a/tests/xtimer_now64_continuity/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_XTIMER=y -CONFIG_MODULE_FMT=y diff --git a/tests/xtimer_now64_continuity/main.c b/tests/xtimer_now64_continuity/main.c deleted file mode 100644 index 2b4b117c6b8f..000000000000 --- a/tests/xtimer_now64_continuity/main.c +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2015 Kaspar Schleiser - * 2017 HAW Hamburg - * - * 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. - */ - -/** - * @ingroup tests - * @{ - * - * @file - * @brief xtimer_now64 continuity test application - * - * @author Kaspar Schleiser - * @author Sebastian Meiling - * - * @} - */ - -#include - -#include "xtimer.h" -#include "fmt.h" - -#define ITERATIONS (100000LU) -#define MAXDIFF (1000U) - -int main(void) -{ - uint32_t n = ITERATIONS; - uint64_t diff_min = UINT64_MAX; - uint64_t diff_max = 0; - uint64_t diff_sum = 0; - print_str("[START]\n"); - xtimer_ticks64_t before = xtimer_now64(); - while(--n) { - xtimer_ticks64_t now = xtimer_now64(); - xtimer_ticks64_t diff = xtimer_diff64(now, before); - if (diff.ticks64 > diff_max) { - diff_max = diff.ticks64; - } - if (diff.ticks64 < diff_min) { - diff_min = diff.ticks64; - } - diff_sum += diff.ticks64; - before = now; - } - print_str("[RESULTS] min="); - print_u64_dec(diff_min); - print_str(", avg="); - print_u64_dec(diff_sum/ITERATIONS); - print_str(", max="); - print_u64_dec(diff_max); - print_str("\n"); - if ((diff_max > MAXDIFF) || (diff_sum/ITERATIONS > MAXDIFF)) { - print_str("[FAILURE]\n"); - return 1; - } - print_str("[SUCCESS]\n"); - return 0; -} diff --git a/tests/xtimer_now64_continuity/tests/01-run.py b/tests/xtimer_now64_continuity/tests/01-run.py deleted file mode 100755 index 94a4df612fc0..000000000000 --- a/tests/xtimer_now64_continuity/tests/01-run.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python3 - -# Copyright (C) 2017 Freie Universität Berlin -# -# 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 sys -from testrunner import run - - -def testfunc(child): - child.expect_exact("[START]") - child.expect(r"\[RESULTS\] min=\d+, avg=\d+, max=\d+") - child.expect_exact("[SUCCESS]") - - -if __name__ == "__main__": - sys.exit(run(testfunc))