From e9ae64908cb116174d2d18be3d727d988e96108b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 15 Oct 2021 18:43:21 +0200 Subject: init: only run tests when prompted from the shell --- src/init/tests/main.c | 5 +++++ src/init/tests/main.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'src/init/tests') diff --git a/src/init/tests/main.c b/src/init/tests/main.c index ed02e5f..3b2d2ce 100644 --- a/src/init/tests/main.c +++ b/src/init/tests/main.c @@ -22,6 +22,11 @@ static void read_file(const char *path, size_t len) { _syscall_close(fd); } +void test_all(void) { + test_fs(); + test_await(); +} + void test_fs(void) { if (!_syscall_fork()) { /* run the "test" in a child process to not affect the fs view of the diff --git a/src/init/tests/main.h b/src/init/tests/main.h index 0c24e03..5525c64 100644 --- a/src/init/tests/main.h +++ b/src/init/tests/main.h @@ -1,4 +1,6 @@ #pragma once +void test_all(void); + void test_fs(void); void test_await(void); -- cgit v1.2.3