8acf59c6aa
- Update all Dockerfile references from polkadot to pezkuwi - Fix package names in scripts (pezpallet-*, pezframe-*) - Update GitHub repository URLs to pezkuwichain/pezkuwi-sdk - Fix template Dockerfiles (minimal, solochain, teyrchain) - Update service file paths and binary names - Fix path references from bizinikiwi/frame/ to bizinikiwi/pezframe/
44 lines
1.4 KiB
Bash
Executable File
44 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Script for updating the UI tests for a new rust stable version.
|
|
# Exit on error
|
|
set -e
|
|
|
|
# by default current rust stable will be used
|
|
RUSTUP_RUN=""
|
|
# check if we have a parameter
|
|
# ./scripts/update-ui-tests.sh 1.70
|
|
if [ ! -z "$1" ]; then
|
|
echo "RUST_VERSION: $1"
|
|
# This will run all UI tests with the rust stable 1.70.
|
|
# The script requires that rustup is installed.
|
|
RUST_VERSION=$1
|
|
RUSTUP_RUN="rustup run $RUST_VERSION"
|
|
|
|
|
|
echo "installing rustup $RUST_VERSION"
|
|
if ! command -v rustup &> /dev/null
|
|
then
|
|
echo "rustup needs to be installed"
|
|
exit
|
|
fi
|
|
|
|
rustup install $RUST_VERSION
|
|
rustup component add rust-src --toolchain $RUST_VERSION
|
|
fi
|
|
|
|
# Ensure we run the ui tests
|
|
export RUN_UI_TESTS=1
|
|
# We don't need any wasm files for ui tests
|
|
export SKIP_WASM_BUILD=1
|
|
# Let trybuild overwrite the .stderr files
|
|
export TRYBUILD=overwrite
|
|
# Warnings are part of our UI and the CI also sets this.
|
|
export RUSTFLAGS="-C debug-assertions -D warnings"
|
|
|
|
# ./bizinikiwi
|
|
$RUSTUP_RUN cargo test -q --locked --manifest-path bizinikiwi/primitives/runtime-interface/Cargo.toml ui
|
|
$RUSTUP_RUN cargo test -q --locked -p pezsp-api-test ui
|
|
$RUSTUP_RUN cargo test -q --locked -p pezframe-election-provider-solution-type ui
|
|
$RUSTUP_RUN cargo test -q --locked -p pezframe-support-test --features=no-metadata-docs,try-runtime,experimental ui
|
|
$RUSTUP_RUN cargo test -q --locked -p xcm-pez-procedural ui
|