[tools] Fix nunit3-console shell scripts. (#15255)

We're putting all packages in the xamarin-macios/packages directory, and that
includes the nunit3-console package, so we need to point these shell scripts
that way.

Also make them behave the same with regards to stsack traces and the --debug
option to mono.
This commit is contained in:
Rolf Bjarne Kvinge 2022-06-15 14:54:00 +02:00 коммит произвёл GitHub
Родитель d5e8656b53
Коммит a04fcf6d41
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 19 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,10 @@
#!/bin/bash -eu
exec mono ~/.nuget/packages/nunit.consolerunner/3.10.0/tools/nunit3-console.exe "$@"
# This makes it so that stack traces have source code location
if test -z "${MONO_ENV_OPTIONS:-}"; then
export MONO_ENV_OPTIONS=--debug
fi
TOP="$(cd "$(dirname "$0")/.." && pwd)"
exec mono --debug "$TOP"/packages/nunit.consolerunner/3.10.0/tools/nunit3-console.exe "$@"

Просмотреть файл

@ -5,4 +5,6 @@ if test -z "${MONO_ENV_OPTIONS:-}"; then
export MONO_ENV_OPTIONS=--debug
fi
exec mono --debug ~/.nuget/packages/nunit.consolerunner/3.11.1/tools/nunit3-console.exe "$@"
TOP="$(cd "$(dirname "$0")/.." && pwd)"
exec mono --debug "$TOP"/packages/nunit.consolerunner/3.11.1/tools/nunit3-console.exe "$@"

Просмотреть файл

@ -1,3 +1,10 @@
#!/bin/bash -eu
exec mono ~/.nuget/packages/nunit.consolerunner/3.9.0/tools/nunit3-console.exe "$@"
# This makes it so that stack traces have source code location
if test -z "${MONO_ENV_OPTIONS:-}"; then
export MONO_ENV_OPTIONS=--debug
fi
TOP="$(cd "$(dirname "$0")/.." && pwd)"
exec mono --debug "$TOP"/packages/nunit.consolerunner/3.9.0/tools/nunit3-console.exe "$@"