#pragma once #include namespace test { // VBS co-locates a profile's executable and test binaries. The CMake comparison // build puts tests in a subdirectory and provides an explicit target path. inline std::filesystem::path server_executable() { #ifdef VLS_EXECUTABLE return VLS_EXECUTABLE; #else return std::filesystem::read_symlink("/proc/self/exe").parent_path() / "vls"; #endif } } // namespace test