# Synthesizer unit tests — verify ELF/PE/Mach-O output structure without # executing the synthesized blobs. These link the synthesizer static libraries # directly; they don't need the full loader runtime. # ── ELF synth tests ────────────────────────────────────────────────────────── add_executable(test_elf_synth elf_synth_test.cpp) target_link_libraries(test_elf_synth PRIVATE voidlibc_loader_common) target_include_directories(test_elf_synth PRIVATE ${CMAKE_SOURCE_DIR}) add_test(NAME synth_elf COMMAND test_elf_synth) set_tests_properties(synth_elf PROPERTIES LABELS "synth;unit") # ── PE synth tests ─────────────────────────────────────────────────────────── add_executable(test_pe_synth pe_synth_test.cpp) target_link_libraries(test_pe_synth PRIVATE voidlibc_loader_windows) target_include_directories(test_pe_synth PRIVATE ${CMAKE_SOURCE_DIR}) add_test(NAME synth_pe COMMAND test_pe_synth) set_tests_properties(synth_pe PROPERTIES LABELS "synth;unit") # ── Mach-O synth tests ─────────────────────────────────────────────────────── add_executable(test_macho_synth macho_synth_test.cpp) target_link_libraries(test_macho_synth PRIVATE voidlibc_loader_macos) target_include_directories(test_macho_synth PRIVATE ${CMAKE_SOURCE_DIR}) add_test(NAME synth_macho COMMAND test_macho_synth) set_tests_properties(synth_macho PROPERTIES LABELS "synth;unit")