aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/main.cpp')
-rw-r--r--kernel/src/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/src/main.cpp b/kernel/src/main.cpp
index 3ba240d..a575be2 100644
--- a/kernel/src/main.cpp
+++ b/kernel/src/main.cpp
@@ -104,6 +104,16 @@ auto test_device_with_vfs() -> void
kstd::println("buffer: {::#04x}", buffer);
}
+auto test_file_lookup() -> void
+{
+ // TODO BA-FS26 implement a more complete test with multiple files and directories and mounts etc.
+
+ auto vfs = filesystem::vfs::get();
+ vfs.open("/a/b/c");
+ vfs.open("/a/d/e");
+ vfs.open("x/y/z");
+}
+
auto run_test_code() -> void
{
kstd::println("[TEST] Running test code...");
@@ -119,6 +129,10 @@ auto run_test_code() -> void
kstd::println("[TEST] device with VFS");
test_device_with_vfs();
kstd::println("---------------------------------");
+
+ kstd::println("[TEST] file lookup");
+ test_file_lookup();
+ kstd::println("---------------------------------");
}
auto main() -> int