- Add CalibrationTargenArgs, PrintcalArgs, CalibrationStore (stage 0). - Add ArgyllRunner.runCalibrationTargen and runPrintcal. - Add CalibrationView + CalibrationViewModel to the app shell. - Wire calibration into RootView, SidebarView, Stage1View, TargetWorkflowViewModel. - Remove mutable _uiTestRoot from AppPaths; derive isolated test roots from ICCERY_TEST_WORKDIR / process id. - Fix Milestone6CGATSUITests to assert stage4TargetBasename instead of a VStack accessibility identifier. - Fix Milestone6CalibrationUITests fixture binary path. Refs: #29 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
26 lines
655 B
Bash
Executable File
26 lines
655 B
Bash
Executable File
#!/bin/sh
|
|
# Mock printcal for Stage 0 calibration tests. Creates the .cal named by
|
|
# the -o argument in the process working directory. Exit code overridable
|
|
# via ICCERY_MOCK_PRINTCAL_EXIT.
|
|
output=""
|
|
basename=""
|
|
prev=""
|
|
for arg in "$@"; do
|
|
if [ "$prev" = "-o" ]; then
|
|
output="$arg"
|
|
fi
|
|
prev="$arg"
|
|
done
|
|
# If no -o, derive from the last positional argument.
|
|
if [ -z "$output" ]; then
|
|
for arg in "$@"; do basename="$arg"; done
|
|
output="$basename.cal"
|
|
fi
|
|
if [ "${ICCERY_MOCK_PRINTCAL_EXIT:-0}" -ne 0 ]; then
|
|
echo "mock printcal failure" >&2
|
|
exit "$ICCERY_MOCK_PRINTCAL_EXIT"
|
|
fi
|
|
echo "ideal power 1.0, device power 0.8"
|
|
touch "$output"
|
|
exit 0
|