Userspace: Add shared library test

I will use this while testing my dynamic loader
This commit is contained in:
Bananymous 2024-08-28 17:08:37 +03:00
parent 57300687ff
commit 991647bc8f
3 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,7 @@ set(USERSPACE_TESTS
test-mouse
test-popen
test-setjmp
test-shared
test-sort
test-tcp
test-udp

View File

@ -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)

View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main()
{
printf("printf works!\n");
}