Building 70 Projects ranging from beginner to advanced so anyone can β learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company π
Go aicertificationcloud-engineeringcybercybersecuritycybersecurity-analystcybersecurity-certificationcybersecurity-certificationscybersecurity-educationcybersecurity-jobscybersecurity-portfoliocybersecurity-projectscybersecurity-toolsgrchackinglearningpentestingproject-repositoryprojetcspython
fix(hsm-emulator): install.sh builds and validates the ReleaseSafe artifact
CarterPerez-devd03b9a37add2
diff --git a/PROJECTS/advanced/hsm-emulator/install.sh b/PROJECTS/advanced/hsm-emulator/install.shindex cfe742d7..efbe5fea 100755--- a/PROJECTS/advanced/hsm-emulator/install.sh+++ b/PROJECTS/advanced/hsm-emulator/install.sh@@ -81,7 +81,7 @@ check_just() {build_module() {info "Building the Cryptoki module (ReleaseSafe)..."- zig build+ zig build --release=safelocal soso=$(find zig-out/lib -name 'libhsm.so.*' -type f | head -1)[ -n "$so" ] || fail "Build produced no libhsm.so"@@ -90,14 +90,14 @@ build_module() {run_tests() {info "Running ABI cross-check and unit tests..."- if zig build test >/dev/null 2>&1; then+ if zig build test --release=safe >/dev/null 2>&1; thenok "All tests passed (ck.zig matches OASIS v2.40 headers)"elsefail "Tests failed. Run 'zig build test --summary all' for details."fiinfo "Running the dlopen smoke test..."- if zig build smoke 2>&1 | grep -q "smoke: OK"; then+ if zig build smoke --release=safe 2>&1 | grep -q "smoke: OK"; thenok "Smoke test passed (module loads and drives the ABI)"elsefail "Smoke test failed. Run 'zig build smoke' for details."