#!/usr/bin/env bash
# Run from a current-main checkout with the supplied scenario and start-app fixture.
# The fixture changes only the server package version; APP_VERSION sets the client build version.
set -eu
case "${1:-precision}" in
 control) client=1.0.0-nightly.2; server=1.0.0-nightly.1 ;;
 precision) client=1.0.0-nightly.9007199254740993; server=1.0.0-nightly.9007199254740992 ;;
 ascii) client=1.0.0-nightly.a; server=1.0.0-nightly.Z ;;
 hyphen) client=1.0.0-nightly.alpha1; server=1.0.0-nightly.alpha-1 ;;
 *) exit 2 ;;
esac
export APP_VERSION="$client" SCENARIO_SERVER_VERSION="$server" T3CODE_DEV_SEED=0
export T3_SCENARIO_INHERIT_ENV=APP_VERSION,SCENARIO_SERVER_VERSION,T3CODE_DEV_SEED
vp run scenarios:prove scripts/scenarios/prerelease-version-order.e2e.ts --base 81df733306645bc79855406964c751d913871e8d --head 2b997fa004217c63167b1a8fe4ab7396145b6ac5 --upload-command 'ghdrop upload'
