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/shell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/init/shell.c') diff --git a/src/init/shell.c b/src/init/shell.c index 9510e0d..53ad995 100644 --- a/src/init/shell.c +++ b/src/init/shell.c @@ -1,5 +1,6 @@ #include #include +#include #include static char *split(char *base) { @@ -76,6 +77,8 @@ void shell_loop(void) { if (_syscall_fork()) _syscall_await(); else level++; + } else if (!strcmp(cmd, "run_tests")) { + test_all(); } else { printf("unknown command :(\n"); } -- cgit v1.2.3