#!/usr/bin/env bash # Usage: ./test.sh [MNN] (no arg = all tests; e.g. ./test.sh M04, ./test.sh M07b) # Every test list is named "MNN Name" (tag, a space, a name). Expecto's --filter-test-list matches a substring, so the # tag is passed with its trailing space: "M07 " selects "M07 IO" but not "M07b SafeIO". set -euo pipefail cd "$(dirname "$0")" export PATH="$HOME/.dotnet:$PATH" export DOTNET_NOLOGO=1 DOTNET_CLI_TELEMETRY_OPTOUT=1 if [ $# -ge 1 ]; then exec dotnet run --project tests -- --filter-test-list "$1 " else exec dotnet run --project tests fi