This logic was intented to zip up the .NET unit tests to run them on Windows,
but in the end we went with a different approach that doesn't require zipping.
This commit is contained in:
Rolf Bjarne Kvinge 2024-10-15 09:24:47 +02:00 коммит произвёл GitHub
Родитель 395aca6e74
Коммит e63de079a6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 0 добавлений и 53 удалений

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

@ -240,14 +240,6 @@ else
@echo Not enabled @echo Not enabled
endif endif
ifdef INCLUDE_DOTNET
dotnet-test-package.7z:
./package-dotnet-tests.sh
else
dotnet-test-package.7z:
@echo Not enabled
endif
#XI #XI
ifdef INCLUDE_IOS ifdef INCLUDE_IOS
wrench-mtouch: wrench-mtouch:

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

@ -1,45 +0,0 @@
#!/bin/bash -ex
cd "$(dirname "${BASH_SOURCE[0]}")"
# Clone files instead of copying them on APFS file systems. Much faster.
CP="cp"
if df -t apfs / >/dev/null 2>&1; then
CP="cp -c"
fi
#git clean -xfdq
rm -Rf "$(pwd)/dotnet-test-package"
DIR=$(pwd)/dotnet-test-package/xamarin-macios
ZIP=$DIR.7z
mkdir -p $DIR
mkdir -p $DIR/tests/dotnet/UnitTests/bin/Debug/net5.0/
mkdir -p $DIR/.git
make -j8
make -C dotnet/UnitTests publish
$CP -r dotnet $DIR/tests/
rm -Rf $DIR/tests/dotnet/packages
# Various files to make 'make' work
$CP -p ../Make.config $DIR
$CP -p ../Make.versions $DIR
$CP -p ../Make.config $DIR
mkdir -p $DIR/mk
$CP -p ../Make.config $DIR
$CP -p ../mk/subdirs.mk $DIR/mk
$CP -p ../mk/rules.mk $DIR/mk
$CP -p ../mk/quiet.mk $DIR/mk
$CP -p ../mk/mono.mk "$DIR/mk"
# Files to make the unit tests run
$CP -p ../global.json $DIR
$CP -p ../NuGet.config $DIR
$CP -p test.config $DIR/tests
# Zip it all up
rm -f dotnet-test-package.7z
cd dotnet-test-package
7z a ../dotnet-test-package.7z *