2016-06-06 13:18:52 +03:00
TOP = ..
2016-05-26 16:06:52 +03:00
i f d e f I N C L U D E _ M A C
SUBDIRS += no-mmp
e n d i f
# disabled for now: mac-test
2016-04-21 19:01:11 +03:00
i n c l u d e $( TOP ) / M a k e . c o n f i g
2016-05-26 16:06:52 +03:00
i n c l u d e $( TOP ) / m k / r u l e s . m k
MTOUCH = $( IOS_DESTDIR) /$( MONOTOUCH_PREFIX) /bin/mtouch
UNIT_SERVER_DIR = $( TOUCH_UNIT_PATH) /Touch.Server
UNIT_SERVER = $( UNIT_SERVER_DIR) /bin/Debug/Touch.Server.exe
2018-11-14 21:41:36 +03:00
TEST_SUITES = monotouch-test link\ sdk link\ all dont\ link framework-test mini mono-native
[runtime] integrate mono 2017-10 (#2905)
* Update the function name used to initialize libmono-profiler-log, its called mono_profiler_init_log () now.
* [builds] Pass --with-cross-offsets= to crosstv's configure.
* Bump mono to 2017-08.
* Bump mono to 2017-08.
* Force disable 'futimens' and 'utimensat' so that we build with Xcode 9.
This is also needed to build with Xcode 8.3 on High Sierra.
* Remove old AppleTls implementation.
* Bump mono.
* Bump mono to 2017-08.
* Bump mono to 2017-08
* Reenable link-keep-resources-2 test
- This reverts commit 76b759ef22c06cda3ba30aba1ac0d45634e4fbf4.
- 2017-08 has linker fix
* Bump mono to 2017-10
* Revert "Bump mono to 2017-10"
This reverts commit bb7832724e18f8578449e46426382a537f3f4823.
* Bump system mono to 2017-10
* Bump embedded mono to 2017-10
* [runtime] reflect eglib move
https://github.com/mono/mono/commit/9be68f8952ea0e1aad582bfe2f47bad71aee2cc7
* bump mono
* [btouch] remove Security.Tls usage from test
* [mtouch tests] update the function name used to initialize libmono-profiler-log, its called mono_profiler_init_log () now.
see
https://github.com/mono/mono/commit/ea4e4a9ef6fc42570a23026adbe826cf7248290e
fixes:
```
1) Failed : Xamarin.MTouch.Profiling(tvOS)
_mono_profiler_startup_log
Expected: collection containing "_mono_profiler_startup_log"
But was: < "_mono_profiler_init_log" >
at Xamarin.MTouch.Profiling (Xamarin.Profile profile) [0x00106] in <511889694a624cc9a50e0e9b259b05c5>:0
2) Failed : Xamarin.MTouch.Profiling(watchOS)
_mono_profiler_startup_log
Expected: collection containing "_mono_profiler_startup_log"
But was: < "_xamarin_get_block_descriptor", "_mono_profiler_init_log" >
at Xamarin.MTouch.Profiling (Xamarin.Profile profile) [0x00106] in <511889694a624cc9a50e0e9b259b05c5>:0
```
* [mmptest] update log profiler options.
https://github.com/mono/mono/commit/826558a4af624bc0acaea98ec39784e65d278091
deprecated the dash prefix for the mlpd path.
`noallocs` or `nocalls` are not needed, neither of them are default anymore.
* [mmptest] fix link-keep-resources-2 test to cope with more corlib resources.
another corlib resource (mscorlib.xml) was added:
https://github.com/mono/mono/commit/11e95169e787#diff-2d1c64decd91d9a6e8842ab0f0e9438d
* Revert "[mmptest] fix link-keep-resources-2 test to cope with more corlib resources."
This reverts commit 350eb3c174288bbffcc3b7acb15cadb913af25b7.
* [XHarness] Add the Mono.Data.Tds tests.
* Address comments from rolf in the review.
* [mmp regresssion tests] bump mono linker, so mscorlib.xml gets stripped
the test was failing in that way:
> Executing link-keep-resources-2...
> [FAIL] i18n 4/2 data files present: charinfo.nlp, collation.core.bin, collation.tailoring.bin, mscorlib.xml
also update the output, because it's actually expected at least three
elements.
fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=59277
* bump mono
fixes crash in tvOS: https://github.com/mono/mono/pull/5812
* bump mono for updated BCL tests
see https://github.com/mono/mono/pull/5820
* [mono] set 2017-10 branch in .gitmodules
* [macos] Fix guiunit error on clean builds by depending on correct copy (#2912)
* [macos] Fix guiunit error on clean builds by depending on correct copy
- From a clean build making a BCL test would error due to the non-mobile guiunit not being built
- This was because the Makefile-mac.inc target was incorrect
- This was because xharness assumed that non variation based targets were always Modern
- However, BCL tests are Full, not Modern
* Code review change
* Swap to var to reduce diff
* Revert changes in the paths for GuiUnit.
* [XHarness] Add the System.IO.Compression bcl tests. (#2918)
* [XHarness] Add the System.IO.Compression bcl tests.
* [XHarness] Add bcl tests for System.IO.Compression.FileSystem. (#2924)
* [XHarness] Add the System.IO.Compression bcl tests.
* Ensure that resources are correctly copied in the bundles.
* [XHarness] Add bcl tests for System.IO.Compression.FileSystem.
* As per review, make the Mac test app name match the tests that are ran.
* [XHarness] Add Mono.CSharp tests on ios. (#2927)
* [XHarness] Add Mono.CSharp tests on ios.
* Bump mono to bring changes in the mono.csharp tests.
* [xtro-sharpie] fix TypeDefinition access due to Cecil change
* Bump mono
* bump mono
fixes
- https://bugzilla.xamarin.com/show_bug.cgi?id=60480
- https://bugzilla.xamarin.com/show_bug.cgi?id=60482
* bump mono
more fixes around conflicting paths when tests are run in parallel.
* Bump for mono/mono@2017-10
2017-11-14 23:30:08 +03:00
BCL_TEST_SUITES = mscorlib \
System \
System.Core \
System.Data \
System.Net.Http \
System.Numerics \
System.Runtime.Serialization \
System.Transactions \
System.Web.Services \
System.Xml \
System.Xml.Linq \
Mono.Security \
System.ComponentModel.DataAnnotations \
System.Json \
System.ServiceModel.Web \
Mono.Data.Sqlite \
Mono.Data.Tds \
System.IO.Compression \
System.IO.Compression.FileSystem \
2017-11-23 14:29:49 +03:00
Mono.CSharp \
System.Security \
2018-01-24 14:56:20 +03:00
System.ServiceModel \
2018-01-25 12:19:41 +03:00
System.IdentityModel \
2017-11-23 14:29:49 +03:00
2016-05-26 16:06:52 +03:00
ALL_TEST_SUITES = $( TEST_SUITES) $( BCL_TEST_SUITES)
2019-01-09 09:43:22 +03:00
EXEC_UNIT_SERVER = XCODE_DEVELOPER_ROOT = $( XCODE_DEVELOPER_ROOT) MONOTOUCH_ROOT = $( IOS_DESTDIR) /$( MONOTOUCH_PREFIX) $( SYSTEM_MONO) --debug $( UNIT_SERVER)
2016-05-26 16:06:52 +03:00
export MD_APPLE_SDK_ROOT = $( abspath $( XCODE_DEVELOPER_ROOT) /../..)
export MD_MTOUCH_SDK_ROOT = $( IOS_DESTDIR) /$( MONOTOUCH_PREFIX)
2018-05-22 01:53:24 +03:00
export MSBUILD_EXE_PATH = $( MONO_PREFIX) /lib/mono/msbuild/15.0/bin/MSBuild.dll
2018-05-10 00:00:38 +03:00
export TargetFrameworkFallbackSearchPaths = $( IOS_DESTDIR) /Library/Frameworks/Mono.framework/External/xbuild-frameworks
export MSBuildExtensionsPathFallbackPathsOverride = $( IOS_DESTDIR) /Library/Frameworks/Mono.framework/External/xbuild
2016-05-26 16:06:52 +03:00
export XAMMAC_FRAMEWORK_PATH = $( MAC_DESTDIR) /Library/Frameworks/Xamarin.Mac.framework/Versions/Current
export XamarinMacFrameworkRoot = $( MAC_DESTDIR) /Library/Frameworks/Xamarin.Mac.framework/Versions/Current
i f n e q ( $( RELEASE ) , )
2016-05-28 04:54:49 +03:00
i f n e q ( $( BITCODE ) , )
CONFIG = Release-bitcode
e l s e
2016-05-26 16:06:52 +03:00
CONFIG = Release
2016-05-28 04:54:49 +03:00
e n d i f
2016-05-26 16:06:52 +03:00
e l s e
CONFIG = Debug
e n d i f
i f e q ( $( V ) , )
i f e q ( $( BUILD_REVISION ) , )
# non-verbose local build
XHARNESS_VERBOSITY =
e l s e
# wrench build
XHARNESS_VERBOSITY = --verbose
e n d i f
e l s e
# verbose build
XHARNESS_VERBOSITY = --verbose
e n d i f
#
# To run all the tests, just do:
#
# make run-tests
#
# and go take a long tea break.
#
# For faster turnaround there are specific targets that can be used
# to run specific test suites. For more information read the README.md.
#
2017-03-30 19:01:15 +03:00
package-tests :
$( MAKE) qa-test-dependencies.zip mac-test-package.zip
2016-05-26 16:06:52 +03:00
test.config : Makefile $( TOP ) /Make .config
@rm -f $@
@echo " MONOTOUCH_PREFIX= $( abspath $( MONOTOUCH_PREFIX) ) " >> $@
@echo " IOS_DESTDIR= $( abspath $( IOS_DESTDIR) ) " >> $@
@echo " MAC_DESTDIR= $( abspath $( MAC_DESTDIR) ) " >> $@
2016-06-06 13:48:53 +03:00
@echo " JENKINS_RESULTS_DIRECTORY= $( abspath $( JENKINS_RESULTS_DIRECTORY) ) " >> $@
2016-06-28 19:53:27 +03:00
@echo " INCLUDE_DEVICE= $( INCLUDE_DEVICE) " >> $@
2018-11-07 11:34:16 +03:00
@echo " XCODE_DEVELOPER_ROOT= $( XCODE_DEVELOPER_ROOT) " >> $@
2019-04-26 17:44:29 +03:00
@echo " MONO_IOS_SDK_DESTDIR= $( MONO_IOS_SDK_DESTDIR) " >> $@
@echo " MONO_MAC_SDK_DESTDIR= $( MONO_MAC_SDK_DESTDIR) " >> $@
2019-01-10 18:43:02 +03:00
@echo " ENABLE_XAMARIN= $( ENABLE_XAMARIN) " >> $@
2016-05-26 16:06:52 +03:00
2017-01-16 09:24:14 +03:00
test-system.config :
@rm -f $@
@echo " MONOTOUCH_PREFIX= $( IOS_FRAMEWORK_DIR) /Versions/Current " >> $@
@echo "IOS_DESTDIR=/" >> $@
@echo "MAC_DESTDIR=/" >> $@
@echo " JENKINS_RESULTS_DIRECTORY= $( abspath $( JENKINS_RESULTS_DIRECTORY) ) " >> $@
@echo " INCLUDE_DEVICE= $( INCLUDE_DEVICE) " >> $@
2019-04-26 17:44:29 +03:00
@echo " MONO_IOS_SDK_DESTDIR= $( MONO_IOS_SDK_DESTDIR) " >> $@
@echo " MONO_MAC_SDK_DESTDIR= $( MONO_MAC_SDK_DESTDIR) " >> $@
2017-01-16 09:24:14 +03:00
2016-05-26 16:06:52 +03:00
clean-local ::
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhoneSimulator /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests.sln
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhone /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests.sln
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhoneSimulator /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests-unified.sln
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhone /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests-unified.sln
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhoneSimulator /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests-tvos.sln
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhoneSimulator /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests-tvos.sln
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhone /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests-watchos.sln
$( Q) $( SYSTEM_XBUILD) /t:Clean /p:Platform= iPhone /p:Configuration= $( CONFIG) $( XBUILD_VERBOSITY) tests-watchos.sln
## run targets = build + [install] + exec
run run-all run-tests run-test :
$( Q) for subdir in $( SUBDIRS) ; do \
$( MAKE) -C $$ subdir run || exit 1; \
done
$( Q) $( MAKE) run-local
# separate build-dev-* entries because some of them are build with debug other (llvm) with release
2016-09-13 13:23:35 +03:00
build-dev-bots :
@echo "These tests are now in the mtouch test suite"
2016-05-26 16:06:52 +03:00
build-% run-% exec-% install-% :
@echo ""
@echo " \033[0;31mUnknown target: $@ \033[0m "
@echo ""
@echo "Syntax is: <action>-<platform>-<where>-<what>"
@echo " Action: build, install (only for device), exec, run (= build + install + exec)."
@echo " Platform: ios, tvos, watchos (can be skipped, in which case all platforms are executed)"
@echo " Where: "
@echo " ios: sim = [simclassic + simunified = [sim32, sim64]]; dev = [devclassic + devunified]"
@echo " tvos/watchos: sim, dev"
@echo " What: The test project to run (BCL tests do not need to be treated specially anymore, just use test project's name)"
@echo ""
@echo "Example:"
@echo ""
@echo " # this will run monotouch-test on an Apple TV device"
@echo " $ make run-tvos-dev-monotouch-test "
@echo ""
@echo "For more info read README.md."
@echo ""
@exit 1
check-result :
@test -z " $( BUILD_REVISION) " || echo " @MonkeyWrench: AddFile: $( abspath $( FILE) ) "
@if grep "Tests run" " $( FILE) " ; then \
if grep FAIL " $( FILE) " ; then \
test "x" = = " x $( BUILD_REVISION) " -o "x" = = " x $( TESTNAME) " || echo " @MonkeyWrench: AddSummary: <b> $( TESTNAME) failed: `grep " Tests run:" " $( FILE) " | sed 's/Tests run: //'`</b><br/>" ; \
echo Test run failed; \
exit 1; \
else \
test "x" = = " x $( BUILD_REVISION) " -o "x" = = " x $( TESTNAME) " || echo " @MonkeyWrench: AddSummary: $( TESTNAME) succeeded: `grep " Tests run:" " $( FILE) " | sed 's/Tests run: //'`<br/>" ; \
echo Test run succeeded; \
fi ; \
else \
test "x" = = " x $( BUILD_REVISION) " -o "x" = = " x $( TESTNAME) " || echo " @MonkeyWrench: AddSummary: <b><i> $( TESTNAME) crashed</i></b><br/> " ; \
echo Test run crashed; \
exit 1; \
fi
logdev :
$( MTOUCH) --logdev
$(UNIT_SERVER) : $( wildcard $ ( UNIT_SERVER_DIR ) /*.cs )
2019-01-09 09:43:22 +03:00
( cd $( UNIT_SERVER_DIR) && $( SYSTEM_MSBUILD) )
2016-05-26 16:06:52 +03:00
build-test-libraries :
@$( MAKE) -C $( TOP) /tests/test-libraries
Makefile.inc : xharness /xharness .exe
2019-01-09 09:43:22 +03:00
$( Q_GEN) $( SYSTEM_MONO) --debug $( CURDIR) /$< $( XHARNESS_VERBOSITY) --configure --autoconf --rootdir $( CURDIR)
2016-05-26 16:06:52 +03:00
- i n c l u d e M a k e f i l e . i n c
$(GUI_UNIT_PATH)/bin/net_4_5/GuiUnit.exe :
2018-11-16 22:24:35 +03:00
TargetFrameworkFallbackSearchPaths = $( MAC_DESTDIR) /Library/Frameworks/Mono.framework/External/xbuild-frameworks MSBuildExtensionsPathFallbackPathsOverride = $( MAC_DESTDIR) /Library/Frameworks/Mono.framework/External/xbuild XamarinMacFrameworkRoot = $( MAC_DESTDIR) /Library/Frameworks/Xamarin.Mac.framework/Versions/Current $( SYSTEM_XIBUILD) -- $( XBUILD_VERBOSITY) $( GUI_UNIT_PATH) /src/framework/GuiUnit_NET_4_5.csproj
2016-05-26 16:06:52 +03:00
$(GUI_UNIT_PATH)/bin/xammac_mobile/GuiUnit.exe :
2018-11-16 22:24:35 +03:00
TargetFrameworkFallbackSearchPaths = $( MAC_DESTDIR) /Library/Frameworks/Mono.framework/External/xbuild-frameworks MSBuildExtensionsPathFallbackPathsOverride = $( MAC_DESTDIR) /Library/Frameworks/Mono.framework/External/xbuild XamarinMacFrameworkRoot = $( MAC_DESTDIR) /Library/Frameworks/Xamarin.Mac.framework/Versions/Current $( SYSTEM_XIBUILD) -- $( XBUILD_VERBOSITY) $( GUI_UNIT_PATH) /src/framework/GuiUnit_xammac_mobile.csproj
2016-05-26 16:06:52 +03:00
Makefile-mac.inc : xharness /xharness .exe
2019-01-09 09:43:22 +03:00
$( Q_GEN) $( SYSTEM_MONO) --debug $( CURDIR) /$< $( XHARNESS_VERBOSITY) --configure --autoconf --mac --rootdir $( CURDIR)
2016-05-26 16:06:52 +03:00
- i n c l u d e M a k e f i l e - m a c . i n c
2017-09-29 20:45:53 +03:00
$(TOP)/tools/mtouch/SdkVersions.cs : $( TOP ) /tools /common /SdkVersions .cs .in
2016-05-26 16:06:52 +03:00
@$( MAKE) -C $( TOP) /tools/mtouch SdkVersions.cs
.stamp-src-project-files :
@$( MAKE) -C $( TOP) /src project-files
@touch $@
2018-11-23 18:02:15 +03:00
.stamp-build-mono-unit-tests : $( TOP ) /.git /modules /external /mono /HEAD
2018-12-12 12:38:48 +03:00
make -j8 -C $( TOP) /external/mono/mcs/class -i do -test PROFILE = xammac_net_4_5 # TODO: This should not be needed and we should get the dlls from the SDK.
make -j8 -C $( TOP) /external/mono/mcs/class -i do -xunit-test PROFILE = xammac_net_4_5 # TODO: This should not be needed and we should get the dlls from the SDK.
2018-11-20 15:06:37 +03:00
nuget restore bcl-test/BCLTests/BCLTests.csproj
2018-11-23 18:02:15 +03:00
$( Q) touch $@
2019-03-01 19:02:08 +03:00
xharness/xharness.exe : $( wildcard xharness /*.cs ) $( wildcard $ ( TOP ) /tools /bcl -test -importer /BCLTestImporter /*.cs ) xharness /xharness .csproj $( TOP ) /tools /mtouch /SdkVersions .cs test .config test -system .config .stamp -src -project -files
2018-11-23 18:02:15 +03:00
nuget restore xharness/xharness.csproj
2019-01-09 09:43:22 +03:00
$( Q_GEN) $( SYSTEM_MSBUILD) $( MSBUILD_VERBOSITY_QUIET) xharness/xharness.csproj
2016-05-26 16:06:52 +03:00
killall :
@killall "iPhone Simulator" >/dev/null 2>& 1 || true
@killall "iOS Simulator" >/dev/null 2>& 1 || true
@killall Touch.Server >/dev/null 2>& 1 || true
2016-11-04 11:13:33 +03:00
NUNIT_MSBUILD_DIR = $( TOP) /packages/NUnit.Runners.2.6.4/tools/lib
2016-05-26 16:06:52 +03:00
test-ios-tasks :
2018-11-16 22:24:35 +03:00
$( SYSTEM_XIBUILD) -- $( TOP) /msbuild/Xamarin.MacDev.Tasks.sln
cd $( NUNIT_MSBUILD_DIR) && $( SYSTEM_XIBUILD) -t -- ../nunit-console.exe ../../../../msbuild/tests/bin/Xamarin.iOS.Tasks.Tests.dll -xml= TestResults_Xamarin.iOS.Tasks.Tests.xml -labels $( TEST_FIXTURE) || touch .failed-stamp
2016-05-26 16:06:52 +03:00
@[ [ -z " $$ BUILD_REPOSITORY " ] ] || ( xsltproc $( TOP) /tests/HtmlTransform.xslt $( NUNIT_MSBUILD_DIR) /TestResults_Xamarin.iOS.Tasks.Tests.xml > $( TOP) /tests/index.html && echo " @MonkeyWrench: AddFile: $$ PWD/index.html " )
@if test -e $( NUNIT_MSBUILD_DIR) /.failed-stamp; then rm $( NUNIT_MSBUILD_DIR) /.failed-stamp; exit 1; fi
2017-12-05 16:13:59 +03:00
test-install-sources :
2018-11-16 22:24:35 +03:00
$( SYSTEM_XIBUILD) -- $( TOP) /tools/install-source/InstallSourcesTests/InstallSourcesTests.csproj
cd $( NUNIT_MSBUILD_DIR) && $( SYSTEM_XIBUILD) -t -- ../nunit-console.exe ../../../../tools/install-source/InstallSourcesTests/bin/Release/InstallSourcesTests.dll -xml= TestResults_InstallSourcesTests.xml -labels $( TEST_FIXTURE) || touch .failed-stamp
2017-12-05 16:13:59 +03:00
@[ [ -z " $$ BUILD_REPOSITORY " ] ] || ( xsltproc $( TOP) /tests/HtmlTransform.xslt $( NUNIT_MSBUILD_DIR) /TestResults_InstallSourcesTests.xml > $( TOP) /tests/index.html && echo " @MonkeyWrench: AddFile: $$ PWD/index.html " )
@if test -e $( NUNIT_MSBUILD_DIR) /.failed-stamp; then rm $( NUNIT_MSBUILD_DIR) /.failed-stamp; exit 1; fi
2016-05-27 11:14:28 +03:00
i f d e f E N A B L E _ X A M A R I N
2016-05-26 16:06:52 +03:00
i f d e f I N C L U D E _ I O S
qa-test-dependencies.zip :
@$( MAKE) build-test-libraries
@# Make sure we start from a clean slate
$( Q) rm -rf $@ $@ .tmpdir
i f d e f I N C L U D E _ T V O S
@# TVOS
$( Q) mkdir -p $@ .tmpdir/tvos
2018-10-29 18:09:30 +03:00
$( Q) $( CP) $( IOS_DESTDIR) $( MONOTOUCH_PREFIX) /lib/mono/Xamarin.TVOS/MonoTouch.Dialog-1.dll* $@ .tmpdir/tvos
$( Q) $( CP) $( IOS_DESTDIR) $( MONOTOUCH_PREFIX) /lib/mono/Xamarin.TVOS/MonoTouch.NUnitLite.dll* $@ .tmpdir/tvos
$( Q) $( CP) $( TOP) /tests/test-libraries/.libs/tvos/libtest.a $@ .tmpdir/tvos
$( Q) $( CP) $( TOP) /tests/test-libraries/.libs/tvos/libtest.dylib $@ .tmpdir/tvos
$( Q) $( CP) -a $( TOP) /tests/test-libraries/.libs/tvos/XTest.framework $@ .tmpdir/tvos
2016-05-26 16:06:52 +03:00
e n d i f
@# iOS
$( Q) mkdir -p $@ .tmpdir/ios
2018-10-29 18:09:30 +03:00
$( Q) $( CP) $( TOP) /tests/test-libraries/.libs/ios/libtest.a $@ .tmpdir/ios
$( Q) $( CP) $( TOP) /tests/test-libraries/.libs/ios/libtest.dylib $@ .tmpdir/ios
$( Q) $( CP) -a $( TOP) /tests/test-libraries/.libs/ios/XTest.framework $@ .tmpdir/ios
2016-11-09 18:14:59 +03:00
$( Q) printf '#!/bin/bash -e\n\n/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mlaunch "$$@"\n' > $@ .tmpdir/mlaunch
$( Q) chmod +x $@ .tmpdir/mlaunch
2016-05-26 16:06:52 +03:00
@# Generate zip
$( Q_GEN) cd $@ .tmpdir && zip -9r $( abspath $@ ) .
@# Cleanup
$( Q) rm -rf $@ .tmpdir
e l s e
qa-test-dependencies.zip :
@echo Not enabled
e n d i f
2016-05-27 11:14:28 +03:00
e l s e
qa-test-dependencies.zip :
@echo Xamarin build not enabled
e n d i f
2016-05-26 16:06:52 +03:00
i f d e f I N C L U D E _ M A C
mac-test-package.zip :
./package-mac-tests.sh
e l s e
mac-test-package.zip :
@echo Not enabled
e n d i f
#XI
i f d e f I N C L U D E _ I O S
wrench-mtouch :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-btouch :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-build-unit-test-dev :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-sim-linksdk :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-sim-linkall :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-sim-dontlink :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
e l s e
wrench-mtouch wrench-btouch wrench-build-unit-test-dev :
@echo " iOS tests have been disabled [ $@ ] "
e n d i f
## XM
i f d e f I N C L U D E _ M A C
wrench-mac-dontlink :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-mac-mmp :
@echo Now part of wrench-mac-mmptest
wrench-mac-misc :
@echo Tests mac-misc tests removed
wrench-mac-apidiff :
@echo This is done in the normal api-diff target now.
wrench-mac-drm :
@echo "The DRM tests have all been removed."
wrench-mac-api :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-mac-mmptest :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-mac-msbuild :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-mac-binding-project :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
2016-06-08 20:45:31 +03:00
wrench-mac-introspection :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-06-08 20:45:31 +03:00
2017-11-29 00:10:56 +03:00
wrench-mac-xammac_tests :
2018-01-15 20:53:52 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
e l s e
wrench-mac-% :
@echo " Mac tests have been disabled [ $@ ] "
e n d i f
wrench-msbuild :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-docs :
2016-05-27 10:56:48 +03:00
i f d e f E N A B L E _ X A M A R I N
2016-05-26 16:06:52 +03:00
i f d e f I N C L U D E _ I O S
2016-11-21 15:09:54 +03:00
$( MAKE) -C $( MACCORE_PATH) update-docs
2016-05-26 16:06:52 +03:00
e l s e
@echo " iOS tests have been disabled [ $@ ] "
e n d i f
2016-05-27 10:56:48 +03:00
e l s e
@echo " Docs have been disabled [ $@ ] "
e n d i f
2016-05-26 16:06:52 +03:00
# the wrenchhelper-* targets are generated.
wrench-sim-% :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-bcl-sim-% :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
2016-05-26 16:06:52 +03:00
wrench-% :
2017-11-22 18:03:36 +03:00
@echo Not here anymore
wrench-jenkins : xharness /xharness .exe
$( Q) rm -f $@ -failed.stamp
2019-01-09 09:43:22 +03:00
$( Q) ulimit -n 4096 && $( SYSTEM_MONO) --trace= E:all --debug $( CURDIR) /$< $( XHARNESS_VERBOSITY) --jenkins --autoconf --rootdir $( CURDIR) --sdkroot $( XCODE_DEVELOPER_ROOT) --label run-all-tests,skip-ios-device-tests --markdown-summary= $( abspath $( CURDIR) ) /TestSummary.md $( TESTS_PERIODIC_COMMAND) || echo " $$ ? " > $@ -failed.stamp
2017-11-22 18:03:36 +03:00
@echo " @MonkeyWrench: SetSummary: <br/>`cat $( abspath $( CURDIR) ) /TestSummary.md | awk 1 ORS='<br/>'` "
@echo " @MonkeyWrench: AddFile: $( abspath $( CURDIR) ) /TestSummary.md "
$( Q) if test -e $@ -failed.stamp; then EC = ` cat $@ -failed.stamp` ; rm -f $@ -failed.stamp; exit $$ EC; fi
2016-04-21 19:01:11 +03:00
2017-10-17 13:03:50 +03:00
wrench-xtro :
2018-01-15 20:53:52 +03:00
@echo Not here anymore
2017-10-17 13:03:50 +03:00
2016-06-06 13:48:53 +03:00
jenkins : xharness /xharness .exe
2019-01-09 09:43:22 +03:00
$( Q) $( SYSTEM_MONO) --trace= E:all --debug $( CURDIR) /$< $( XHARNESS_VERBOSITY) --jenkins --autoconf --rootdir $( CURDIR) --sdkroot $( XCODE_DEVELOPER_ROOT) --markdown-summary= $( abspath $( CURDIR) ) /TestSummary.md
2017-07-13 15:25:48 +03:00
2017-08-11 22:28:49 +03:00
# This will launch xharness' interactive test runner in the system's default browser
runner : xharness /xharness .exe
@echo "Running xharness in server mode. Press Ctrl-C to exit (or click Quit / press Q in the browser page)"
2019-01-09 09:43:22 +03:00
$( Q) $( SYSTEM_MONO) $( CURDIR) /xharness/xharness.exe $( XHARNESS_VERBOSITY) --jenkins:server --autoconf --rootdir $( CURDIR) --sdkroot $( XCODE_DEVELOPER_ROOT)
2017-08-11 22:28:49 +03:00
2017-08-09 18:23:54 +03:00
# This makefile target will run the device tests using the Xamarin.iOS version
# installed on the system.
vsts-device-tests : xharness /xharness .exe
2019-04-25 13:06:47 +03:00
$( Q) ulimit -n 4096 && $( SYSTEM_MONO) --debug $( CURDIR) /$< $( XHARNESS_VERBOSITY) --jenkins --autoconf --rootdir $( CURDIR) --sdkroot $( XCODE_DEVELOPER_ROOT) --use-system:true --label= skip-mac-tests,skip-ios-simulator-tests,skip-ios-msbuild-tests,skip-system-permission-tests, --markdown-summary= $( CURDIR) /TestSummary.md $( TESTS_EXTRA_ARGUMENTS) $( TESTS_PERIODIC_COMMAND)
2017-08-09 18:23:54 +03:00
2017-07-13 15:25:48 +03:00
i f d e f E N A B L E _ X A M A R I N
wrench-launch-external wrench-report-external :
$( MAKE) -C $( MACCORE_PATH) /tests/external $@
e l s e
wrench-launch-external wrench-report-external :
@echo "External tests have been disabled"
e n d i f