mirror of
https://github.com/rememberber/MooTool.git
synced 2026-12-01 03:18:19 +08:00
16 lines
812 B
Bash
Executable File
16 lines
812 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
./scripts/check-toolchain.sh
|
|
for native_option in "$@"; do
|
|
case "$native_option" in --window-capture|--notes-only|--note-layouts-only|--format-only|--diff-only|--feedback-only|--visual-only|--chrome-only) ;; *) echo 'Usage: scripts/smoke.sh [--window-capture] [--notes-only|--note-layouts-only|--format-only|--diff-only|--feedback-only|--visual-only|--chrome-only]' >&2; exit 2 ;; esac
|
|
done
|
|
swift build
|
|
native_bin=$(swift build --show-bin-path)
|
|
native_test_data=$(mktemp -d /tmp/mootool-native-test.XXXXXX)
|
|
trap 'rm -rf "$native_test_data"' EXIT
|
|
export MOOTOOL_NATIVE_TEST_DATA="$native_test_data"
|
|
export MOOTOOL_NATIVE_SCREENSHOTS="$PWD/dist/acceptance"
|
|
"$native_bin/MooToolNextNative" --smoke-test "$@"
|
|
"$native_bin/MooToolNextNative" --verify-workspace
|