From 991647bc8fdfa0fcd40d856dd1dd4febaf0a3733 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 28 Aug 2024 17:08:37 +0300 Subject: [PATCH] Userspace: Add shared library test I will use this while testing my dynamic loader --- userspace/tests/CMakeLists.txt | 1 + userspace/tests/test-shared/CMakeLists.txt | 8 ++++++++ userspace/tests/test-shared/main.cpp | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 userspace/tests/test-shared/CMakeLists.txt create mode 100644 userspace/tests/test-shared/main.cpp diff --git a/userspace/tests/CMakeLists.txt b/userspace/tests/CMakeLists.txt index 4d47941d..26a8912f 100644 --- a/userspace/tests/CMakeLists.txt +++ b/userspace/tests/CMakeLists.txt @@ -6,6 +6,7 @@ set(USERSPACE_TESTS test-mouse test-popen test-setjmp + test-shared test-sort test-tcp test-udp diff --git a/userspace/tests/test-shared/CMakeLists.txt b/userspace/tests/test-shared/CMakeLists.txt new file mode 100644 index 00000000..9e016eb0 --- /dev/null +++ b/userspace/tests/test-shared/CMakeLists.txt @@ -0,0 +1,8 @@ +set(SOURCES + main.cpp +) + +add_executable(test-shared ${SOURCES}) +banan_link_library(test-shared libc-shared) + +install(TARGETS test-shared OPTIONAL) diff --git a/userspace/tests/test-shared/main.cpp b/userspace/tests/test-shared/main.cpp new file mode 100644 index 00000000..6120a327 --- /dev/null +++ b/userspace/tests/test-shared/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() +{ + printf("printf works!\n"); +}