Merge pull request #2741 from akoeplinger/acceptance-tests-split
[mono.git] / acceptance-tests / roslyn.mk
1 check-roslyn:
2         @$(MAKE) validate-roslyn RESET_VERSIONS=1
3         @if [ -z $$PREFIX ]; then echo "You need to set PREFIX to the prefix of the Mono installation that should be used for testing Roslyn." && exit 1; fi
4         sed -i -e 's/\\4.5-api"/\\4.5"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
5         export MSBuildExtensionsPath=$$PREFIX/lib/mono/xbuild; \
6         MONO_DOTNET_PORTABLE_DIR=$$PREFIX/lib/mono/xbuild-frameworks/.NETPortable/; \
7         MONO_NUGET_TARGETS_DIR=$$PREFIX/lib/mono/xbuild/Microsoft/NuGet/; \
8         MONO_PORTABLE_TARGETS_DIR=$$PREFIX/lib/mono/xbuild/Microsoft/Portable/v5.0; \
9         if [ ! -d "$$MONO_DOTNET_PORTABLE_DIR/v5.0" ]; then \
10                 mkdir -p $$MONO_DOTNET_PORTABLE_DIR; \
11                 mkdir -p $$MONO_NUGET_TARGETS_DIR; \
12                 mkdir -p $$MONO_PORTABLE_TARGETS_DIR; \
13                 curl -SL "http://storage.bos.internalx.com/bot-provisioning/RoslynBuildDependencies.zip" > /tmp/RoslynBuildDependencies.zip; \
14                 unzip -o /tmp/RoslynBuildDependencies.zip -d /tmp/RoslynBuildDependencies; \
15                 cp -r /tmp/RoslynBuildDependencies/PortableReferenceAssemblies/* $$MONO_DOTNET_PORTABLE_DIR; \
16                 cp /tmp/RoslynBuildDependencies/NuGetTargets/* $$MONO_NUGET_TARGETS_DIR; \
17                 cp /tmp/RoslynBuildDependencies/PortableTargets/* $$MONO_PORTABLE_TARGETS_DIR; \
18         fi; \
19         cd $(ROSLYN_PATH); \
20         sed -i -e 'N; s/bootstrapArg=".*\n.*"/bootstrapArg=""/g' cibuild.sh; \
21         sed -i -e 's#-xml Binaries/\$$BUILD_CONFIGURATION/xUnitResults/#-nunit $(abs_top_builddir)/acceptance-tests/TestResult-#g' cibuild.sh; \
22         ./cibuild.sh --mono-path $$PREFIX/bin; \
23         sed -i -e 's/\\4.5"/\\4.5-api"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml;