feat: complete Track A zero-CMake self-hosting, full VOID_TEST migration, and bit-identical Stage 2/3 bootstrap
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
This commit is contained in:
1 parent
fe0d1a6483
commit
5e1916dc5c
23 files changed
+945
-141
No files matched your search
+20
-5
@@ -43,9 +43,24 @@ std::string extract_json_str(std::string_view json, const std::string &key) {
|
||||
return s ? *s : std::string{};
|
||||
}
|
||||
|
||||
std::filesystem::path locate_vbs_binary() {
|
||||
std::error_code ec;
|
||||
if (const auto self = std::filesystem::read_symlink("/proc/self/exe", ec);
|
||||
!ec && !self.empty()) {
|
||||
const auto sibling = self.parent_path() / "vbs";
|
||||
if (std::filesystem::exists(sibling, ec)) {
|
||||
return sibling;
|
||||
}
|
||||
}
|
||||
if (!Bootstrap::binary_dir.empty()) {
|
||||
return std::filesystem::path{Bootstrap::binary_dir} / "bin" / "vbs";
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Void::Testing::Test registry_rbac_immutability_csrf_xss_web_and_backup_restore() {
|
||||
VOID_TEST(RegistryTests, registry_rbac_immutability_csrf_xss_web_and_backup_restore) {
|
||||
Void::FileSystem::TempDir tmp{"vbs_reg_"};
|
||||
RegistryConfig cfg;
|
||||
cfg.data_dir = tmp / "data";
|
||||
@@ -202,10 +217,10 @@ Void::Testing::Test registry_rbac_immutability_csrf_xss_web_and_backup_restore()
|
||||
|
||||
// End-to-end live client <-> server test: `vbs publish` -> `vbs deps resolve` -> `vbs build
|
||||
// --locked`!
|
||||
Void::Testing::Test cli_publish_deps_resolve_and_locked_build_against_live_registry() {
|
||||
const auto vbs_bin = std::filesystem::path{Bootstrap::binary_dir} / "bin" / "vbs";
|
||||
Void::Testing::expect(std::filesystem::exists(vbs_bin));
|
||||
if (!std::filesystem::exists(vbs_bin)) {
|
||||
VOID_TEST(RegistryTests, cli_publish_deps_resolve_and_locked_build_against_live_registry) {
|
||||
const auto vbs_bin = locate_vbs_binary();
|
||||
Void::Testing::expect(!vbs_bin.empty() && std::filesystem::exists(vbs_bin));
|
||||
if (vbs_bin.empty() || !std::filesystem::exists(vbs_bin)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user