summaryrefslogtreecommitdiff
path: root/src/init/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/shell.c')
-rw-r--r--src/init/shell.c3
1 files changed, 3 insertions, 0 deletions
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 <init/shell.h>
#include <init/stdlib.h>
+#include <init/tests/main.h>
#include <shared/syscalls.h>
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");
}