PHP 8.2.30
Preview: test-macos Size: 1.02 KB
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev/ci/tests/binaries/test-macos

#!/usr/bin/env bash
# This script is from the "Passenger binaries test" Jenkins job. It runs
# runs tests on the binaries generated by the "build-macos" script.
#
# Required environment variables:
#
#   WORKSPACE
#
# Optional environment variables:
#
#   PASSENGER_ROOT (defaults to $WORKSPACE)
#   OUTPUT_DIR (defaults to $WORKSPACE/output)
#   RUNTIME_DIR (defaults to $WORKSPACE/cache/runtime)

set -e
SELFDIR=$(dirname "$0")
cd "$SELFDIR/../../../../packaging/binaries"
# shellcheck source=../../../../packaging/binaries/shared/lib/library.sh
source "./shared/lib/library.sh"

require_envvar WORKSPACE "$WORKSPACE"

PASSENGER_ROOT="${PASSENGER_ROOT:-$WORKSPACE}"
OUTPUT_DIR="${OUTPUT_DIR:-$WORKSPACE/output}"
RUNTIME_DIR="${RUNTIME_DIR:-$WORKSPACE/cache/runtime}"

RUNTIME_VERSION=$(cat shared/definitions/macos_runtime_version)

run mkdir -p "$OUTPUT_DIR"

run ./macos/package \
	-i "$OUTPUT_DIR" \
	-o "$OUTPUT_DIR"
run ./macos/test \
	-p "$PASSENGER_ROOT" \
	-r "$RUNTIME_DIR/$RUNTIME_VERSION" \
	-i "$OUTPUT_DIR" \
	-I "$OUTPUT_DIR"

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
1.01 KB lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
1.04 KB lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
3.19 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.06 KB lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
1.15 KB lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
1.02 KB lrwxr-xr-x 2026-01-27 23:50:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).