Read the prebuilt display helper path from the harness manifest
This commit is contained in:
parent
7fb1f50966
commit
fbe209cb33
3 changed files with 39 additions and 13 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -466,11 +466,18 @@ jobs:
|
|||
set -euo pipefail
|
||||
SOURCE_PACKAGES_DIR="$PWD/.ci-source-packages"
|
||||
HELPER_PATH="/tmp/create-virtual-display"
|
||||
MANIFEST_PATH="/tmp/cmux-ui-test-display-harness.json"
|
||||
|
||||
rm -f "$MANIFEST_PATH"
|
||||
trap 'rm -f "$MANIFEST_PATH"' EXIT
|
||||
|
||||
clang -framework Foundation -framework CoreGraphics \
|
||||
-o "$HELPER_PATH" scripts/create-virtual-display.m
|
||||
|
||||
CMUX_UI_TEST_DISPLAY_HELPER_BINARY_PATH="$HELPER_PATH" \
|
||||
cat >"$MANIFEST_PATH" <<EOF
|
||||
{"helperBinaryPath":"$HELPER_PATH"}
|
||||
EOF
|
||||
|
||||
xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug \
|
||||
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_DIR" \
|
||||
-disableAutomaticPackageResolution \
|
||||
|
|
|
|||
10
.github/workflows/test-e2e.yml
vendored
10
.github/workflows/test-e2e.yml
vendored
|
|
@ -209,13 +209,17 @@ jobs:
|
|||
|
||||
if [ "$TEST_FILTER" = "DisplayResolutionRegressionUITests" ]; then
|
||||
HELPER_PATH="/tmp/create-virtual-display"
|
||||
MANIFEST_PATH="/tmp/cmux-ui-test-display-harness.json"
|
||||
|
||||
rm -f "$MANIFEST_PATH"
|
||||
trap 'rm -f "$MANIFEST_PATH"' EXIT
|
||||
|
||||
clang -framework Foundation -framework CoreGraphics \
|
||||
-o "$HELPER_PATH" scripts/create-virtual-display.m
|
||||
|
||||
DISPLAY_ENV_PREFIX=(
|
||||
CMUX_UI_TEST_DISPLAY_HELPER_BINARY_PATH="$HELPER_PATH"
|
||||
)
|
||||
cat >"$MANIFEST_PATH" <<EOF
|
||||
{"helperBinaryPath":"$HELPER_PATH"}
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Start recording right before the test (after build/resolve).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue