Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,14 @@ build_tests() {
log_info " - target (simple target process for testing)"
}

build_tests_if_available() {
if [ -d "${SCRIPT_DIR}/tests" ] && [ -f "${SCRIPT_DIR}/tests/Makefile" ]; then
build_tests
else
log_warning "tests/ not found; skipping test-suite build"
fi
}

build_payload() {
log_info "Building ImGui payload..."

Expand All @@ -427,6 +435,14 @@ build_payload() {
log_success "ImGui payload built successfully"
}

build_payload_if_available() {
if [ -d "${SCRIPT_DIR}/tests/payload_imgui" ]; then
build_payload
else
log_warning "tests/payload_imgui not found; skipping ImGui payload build"
fi
}

build_sigstore_verify() {
log_info "Building sigstore verifier..."

Expand All @@ -446,8 +462,8 @@ build_all() {

build_kernel_module
build_userland
build_tests
build_payload
build_tests_if_available
build_payload_if_available
build_sigstore_verify

log_success "=== Build completed successfully ==="
Expand Down Expand Up @@ -1053,7 +1069,7 @@ Usage: $0 [command] [options]

Commands:
deps Install build dependencies
build Build everything (kernel module, userland, tests, payload)
build Build driver, userland, verifier, and optional local tests/payload
build-kernel Build ONLY the kernel module (VM / cross-test workflow)
install Install everything (requires root)
uninstall Remove everything (requires root)
Expand Down
Loading