From 68a2a5dab0b07a234da2fd29dec03d08f886dfa8 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 26 Oct 2020 11:54:42 +0100 Subject: [PATCH] sys: tests: rename posix_time to posix_sleep --- examples/posix_sockets/Makefile | 2 +- pkg/umorse/Makefile.dep | 2 +- sys/Makefile | 4 ++-- sys/Makefile.dep | 2 +- sys/posix/{time => sleep}/Makefile | 2 +- sys/posix/{time/posix_time.c => sleep/posix_sleep.c} | 2 +- tests/{posix_time => posix_sleep}/Makefile | 2 +- tests/{posix_time => posix_sleep}/README.md | 2 +- tests/{posix_time => posix_sleep}/main.c | 0 tests/{posix_time => posix_sleep}/tests/01-run.py | 0 10 files changed, 9 insertions(+), 9 deletions(-) rename sys/posix/{time => sleep}/Makefile (62%) rename sys/posix/{time/posix_time.c => sleep/posix_sleep.c} (96%) rename tests/{posix_time => posix_sleep}/Makefile (74%) rename tests/{posix_time => posix_sleep}/README.md (88%) rename tests/{posix_time => posix_sleep}/main.c (100%) rename tests/{posix_time => posix_sleep}/tests/01-run.py (100%) diff --git a/examples/posix_sockets/Makefile b/examples/posix_sockets/Makefile index b5cfaa243b..9188a0f96a 100644 --- a/examples/posix_sockets/Makefile +++ b/examples/posix_sockets/Makefile @@ -15,7 +15,7 @@ USEMODULE += auto_init_gnrc_netif USEMODULE += gnrc_ipv6_default USEMODULE += sock_udp USEMODULE += posix_sockets -USEMODULE += posix_time +USEMODULE += posix_sleep USEMODULE += posix_inet # Add also the shell, some shell commands USEMODULE += shell diff --git a/pkg/umorse/Makefile.dep b/pkg/umorse/Makefile.dep index 350dc2afa4..7b58f2b903 100644 --- a/pkg/umorse/Makefile.dep +++ b/pkg/umorse/Makefile.dep @@ -1 +1 @@ -USEMODULE += posix_time +USEMODULE += posix_sleep diff --git a/sys/Makefile b/sys/Makefile index 9abc50975f..e2216b74a1 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -140,8 +140,8 @@ endif ifneq (,$(filter posix_sockets,$(USEMODULE))) DIRS += posix/sockets endif -ifneq (,$(filter posix_time,$(USEMODULE))) - DIRS += posix/time +ifneq (,$(filter posix_sleep,$(USEMODULE))) + DIRS += posix/sleep endif ifneq (,$(filter pthread,$(USEMODULE))) DIRS += posix/pthread diff --git a/sys/Makefile.dep b/sys/Makefile.dep index e96a15b89b..51b39c937d 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -561,7 +561,7 @@ ifneq (,$(filter posix_semaphore,$(USEMODULE))) USEMODULE += posix_headers endif -ifneq (,$(filter posix_time,$(USEMODULE))) +ifneq (,$(filter posix_sleep,$(USEMODULE))) USEMODULE += xtimer USEMODULE += posix_headers endif diff --git a/sys/posix/time/Makefile b/sys/posix/sleep/Makefile similarity index 62% rename from sys/posix/time/Makefile rename to sys/posix/sleep/Makefile index 58c4276185..8cfde5a886 100644 --- a/sys/posix/time/Makefile +++ b/sys/posix/sleep/Makefile @@ -1,3 +1,3 @@ -MODULE = posix_time +MODULE = posix_sleep include $(RIOTBASE)/Makefile.base diff --git a/sys/posix/time/posix_time.c b/sys/posix/sleep/posix_sleep.c similarity index 96% rename from sys/posix/time/posix_time.c rename to sys/posix/sleep/posix_sleep.c index ae78095968..d732ceebc8 100644 --- a/sys/posix/time/posix_time.c +++ b/sys/posix/sleep/posix_sleep.c @@ -7,7 +7,7 @@ */ /** - * @ingroup sys_xtimer + * @ingroup posix * * @{ * @file diff --git a/tests/posix_time/Makefile b/tests/posix_sleep/Makefile similarity index 74% rename from tests/posix_time/Makefile rename to tests/posix_sleep/Makefile index 65e58f6d25..2d5f6f5dda 100644 --- a/tests/posix_time/Makefile +++ b/tests/posix_sleep/Makefile @@ -1,5 +1,5 @@ include ../Makefile.tests_common -USEMODULE += posix_time +USEMODULE += posix_sleep include $(RIOTBASE)/Makefile.include diff --git a/tests/posix_time/README.md b/tests/posix_sleep/README.md similarity index 88% rename from tests/posix_time/README.md rename to tests/posix_sleep/README.md index e8d161db4a..b9b6f89853 100644 --- a/tests/posix_time/README.md +++ b/tests/posix_sleep/README.md @@ -1,4 +1,4 @@ -# posix_time test application +# posix_sleep test application This test tests POSIX' `sleep()` and `usleep()`. The test script also checks the sanity of the timings by comparing the overall diff --git a/tests/posix_time/main.c b/tests/posix_sleep/main.c similarity index 100% rename from tests/posix_time/main.c rename to tests/posix_sleep/main.c diff --git a/tests/posix_time/tests/01-run.py b/tests/posix_sleep/tests/01-run.py similarity index 100% rename from tests/posix_time/tests/01-run.py rename to tests/posix_sleep/tests/01-run.py