[Usr] Add a test process to spawn from Teton.
This commit is contained in:
		
							parent
							
								
									7c75b832b2
								
							
						
					
					
						commit
						4e25a7e3b9
					
				|  | @ -3,3 +3,4 @@ __pycache__/ | ||||||
| compile_commands.json | compile_commands.json | ||||||
| 
 | 
 | ||||||
| sysroot/bin | sysroot/bin | ||||||
|  | sysroot/usr/bin | ||||||
|  |  | ||||||
|  | @ -15,4 +15,5 @@ set(BASE_LINK_FLAGS "-nostdlib") | ||||||
| add_subdirectory(zion) | add_subdirectory(zion) | ||||||
| add_subdirectory(lib) | add_subdirectory(lib) | ||||||
| add_subdirectory(yunq) | add_subdirectory(yunq) | ||||||
|  | add_subdirectory(usr) | ||||||
| add_subdirectory(sys) | add_subdirectory(sys) | ||||||
|  |  | ||||||
|  | @ -0,0 +1,2 @@ | ||||||
|  | 
 | ||||||
|  | add_subdirectory(testbed) | ||||||
|  | @ -0,0 +1,21 @@ | ||||||
|  | 
 | ||||||
|  | add_executable(testbed | ||||||
|  |   test.cpp | ||||||
|  |   ) | ||||||
|  | 
 | ||||||
|  | target_include_directories(testbed | ||||||
|  |    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) | ||||||
|  | 
 | ||||||
|  | target_link_libraries(testbed | ||||||
|  |   mammoth | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") | ||||||
|  | 
 | ||||||
|  | set_target_properties(testbed PROPERTIES | ||||||
|  |   COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}" | ||||||
|  |   LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${BASE_LINK_FLAGS}" | ||||||
|  | ) | ||||||
|  | 
 | ||||||
|  | install(TARGETS testbed DESTINATION usr/bin) | ||||||
|  | 
 | ||||||
|  | @ -0,0 +1,7 @@ | ||||||
|  | #include <mammoth/util/debug.h> | ||||||
|  | 
 | ||||||
|  | uint64_t main(uint64_t init_port_cap) { | ||||||
|  |   dbgln("testbed"); | ||||||
|  | 
 | ||||||
|  |   return glcr::OK; | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue