forked from Bananymous/banan-os
Userspace: Add shared library test
I will use this while testing my dynamic loader
This commit is contained in:
@@ -6,6 +6,7 @@ set(USERSPACE_TESTS
|
||||
test-mouse
|
||||
test-popen
|
||||
test-setjmp
|
||||
test-shared
|
||||
test-sort
|
||||
test-tcp
|
||||
test-udp
|
||||
|
||||
8
userspace/tests/test-shared/CMakeLists.txt
Normal file
8
userspace/tests/test-shared/CMakeLists.txt
Normal 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)
|
||||
6
userspace/tests/test-shared/main.cpp
Normal file
6
userspace/tests/test-shared/main.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("printf works!\n");
|
||||
}
|
||||
Reference in New Issue
Block a user