summaryrefslogtreecommitdiff
path: root/tests/build.proj
AgeCommit message (Collapse)AuthorFilesLines
2019-01-03Remove vc-runtime package dependency (#21643)Egor Chesakov1-1/+0
2018-08-10Add SoA raytracer as a CQ test for Intel hardware intrinsicFei Peng1-0/+1
2018-08-07Use dotnet MSBuild for tests (#19324)Aaron Robinson1-2/+2
* Revert "Revert "Build managed tests with dotnet (#19254)"" * Reenable MSBuild support through dotnet instead of global MSBuild
2018-08-06[WIP] Update vc-runtime package to support ARM and ARM64 with current builds.Bruce Forstall1-1/+1
2018-08-03Revert "Build managed tests with dotnet (#19254)"Bruce Forstall1-2/+2
This reverts commit 101baee1010eaad47cd7afd1e041a7f422aefa78.
2018-08-03Build managed tests with dotnet (#19254)Chris Sienkiewicz1-2/+2
* Change managed projects to build with dotnet msbuild, rather than desktop msbuild * Build sdk tests as AnyCPU * Correct args passed through to dotnet for tests * Remove extra backslash from baseIntermediateOutputPath that was causing individual test exe builds to fail * Fix double import warning for sdk projects * Add default params from config.json to build-test dotnet invocations * Fix priority argument passing from the command line for tests
2018-08-01Revert "Build managed tests with dotnet (#19230)"Bruce Forstall1-2/+2
This reverts commit 763142a210d858289d30365dd1d4f2772e48f30d.
2018-08-01Build managed tests with dotnet (#19230)Chris Sienkiewicz1-2/+2
* Change managed projects to build with dotnet msbuild, rather than desktop msbuild * Build sdk tests as AnyCPU * Correct args passed through to dotnet for tests * Remove extra backslash from baseIntermediateOutputPath that was causing individual test exe builds to fail * Fix double import warning for sdk projects * Add default params from config.json to build-test dotnet invocations
2018-07-19Build xunit wrappers the same way on windows and unix (#18695)Sven Boemer1-1/+0
* Initial change to allow build wrappers and runtest.py * Build xunit wrappers on unix The generated wrapper needs to target netcoreapp on unix. I had to exclude assets from the xunit package and introduce a dependency on the private corefx bits, to resolve a dependency conflict in which the generated wrapper was depending on an older System.Runtime.dll than the helper library. I also disabled binclash logging, because the wrapper build binplaces the helper library to the same location multiple times. I couldn't find a simple way to disable binclash logging for the wrapper build only, since that requires passing an empty switch to run.exe, and bash word splitting makes this nontrivial from build-test. * Correctly generate TestEnv xplat Note that this will still require changes to the test wrapper to actually source the TestEnv on unix * Build xunit wrappers using SDK * Target netcoreapp2.0 in xunit wrappers This way, the wrappers can build even if the 2.1 SDK isn't installed on the machine. * Restore to packages directory for xunit wrappers * Move common properties out to dir.common.props When building wrappers using the SDK, we need some basic properties (like the build os/arch/config, and the output directories) to be set. I factored out properties used by both the old test build and the new SDK-project test build. At first I tried using Directory.Build.props (which is automatically imported by the SDK), but our test build already imports SDK targets in various places, so this was resulting in duplicate imports. Instead, I used dir.common.props, and made the imports explicit. * Remove desktop-specific test wrapper csproj * Pass build os/arch/type and logsdir to msbuild from runtest.py * Remove xunit wrapper helper library from traversal build * Fix parameter passing in build-test.sh Use bash arrays to pass parameters for the build command. This makes it possible to pass arguments with spaces to build_Tests_internal. We use this to disable binclashlogging selectively (for the xunit wrapper build only). * Clean up factored .props files * Undo runtest.sh changes * Use latest xunit console runner everywhere * Remove extra StaticDependency on xunit.runner.console * Eliminate tests/src/dir.common.props, and rename dir.sdkbuild.props tests/src/dir.common.props was only used for the desktop-specific xunit wrapper helper library. There's no need for it any more, so its properties have been moved into tests/src/dir.props. dir.sdkbuild.props has been renamed to dir.common.props, since it contains properties used by SDK projects and buildtools projects. This change also re-enables the test build. * Reintroduce dir.sdkbuild.props as a place for SDK-only props With this, some properties shared by SDK projects can go in a global location. The TargetFramework is shared by all SDK projects in the test tree. This change also uses a property for the xunit package directory that contains the xunit.console.dll we copy to core_root. * Add xml namespace to dir.common.props This fixes a failure in the windows build. * Satisfy xunit analyzer * Satisfy xunit analyzer again * Use SDK msbuild to build wrappers On windows, the use of run.exe, config.json, and msbuild.cmd uses msbuild.exe on the path. This change will build wrappers using the local SDK via "dotnet msbuild", bypassing run.exe. Run.exe will go away entirely with the move from buildtools to arcade, so other build invocatios should follow suit. * Remove Microsoft.CSharp.Core.targets workaround UseBuildTools used to be true all the time. Now that we are building wrappers on core, UseBuildTools becomes false. However, the rest of the runtest.proj expects to build using buildtools, so we keep UseBuildTools true until we switch to arcade. The CSharpCoreTargetsPath was imported when running on core only. This used to happen only on unix, but now it also happens when building runtest.proj for the xunit wrappers on windows. On unix, this targets file was a symlink to itself to work around some buildtools logic that expected the file to exist. This workaround no longer appears necessary, and on windows, this was never used in the first place, so this change removes it. * Remove UseRoslynCompilers prop and unify roslyn import UseRoslynCompilers was introduced in buildtools by https://github.com/dotnet/buildtools/pull/947, with different behaviors on windows/unix. It was removed by https://github.com/dotnet/buildtools/pull/1974, so we can unify our roslyn imports now. * Don't copy xunit dlls to corefx test host The corefx tests run on specific versions of xunit dlls, defined in CoreFX.depproj. We want to use these versions in the test host, not those in CORE_ROOT, so exclude these from being copied to the test host directory. This fixes the failing corefx tests. * Don't pass run.exe arguments through build-test.cmd in test pipeline These arguments get passed along to the xunit wrapper build as unprocessed build args. They need to work for "dotnet msbuild" (used for the wrapper build) as well as for run.exe. * Fix parameter passing of priority arg in build-test.cmd UnprocessedBuildArgs should contain arguments in the format expected by msbuild, not by run.exe. * Fix parameter passing of unprocessed args in build-test.cmd The "--" syntax is used by run.exe to pass everything following to msbuild directly. It should not be a part of unprocessed args. * Pass TargetsWindowsArg to wrapper build in build-test.cmd Helix builds tests on windows and runs them on unix using the xunit wrappers. When cross-building the wrappers like this, TargetsWindows is set to false by the test build pipeline. This variable ensures that the wrapper uses correct directory separators when invoking the test .sh file. * Pass BuildTestsAgainstPackages arg to exclude unix tests Helix builds xunit wrappers on windows, and runs them on unix. The BuildTestsAgainstPackages should currently be set to true in the windows wrapper build to properly filter the .cmd files based on exclusions in issues.targets.
2018-03-23Improve Windows test build performance by building projects in groupsJacek Blaszczynski1-5/+5
2018-02-28Revert: Simplify test dependencies for benchmarks (#16647)Andy Ayers1-0/+4
This reverts commit 0598b6b8af0fb560837ce0bb8f3c8236c05bbdc9. Updates to xunit console runner break things in Helix. So reverting until we can get that part sorted. Also undoes version updates from #16597; we can't move these forward yet as we're back to netstandard 1.4 for the time being.
2018-02-26Simplify test dependencies for benchmarks (#16378)Andy Ayers1-4/+0
Remove the special benchmark configs and update benchmark projects accordingly. Also update other random projects that were referencing benchmark configs. Benchmarks now build against the default standard. Addresses #14124, #16126.
2017-10-25Disable VerifyDependencies target in package restorewtgodbe1-1/+1
2017-09-26Fixed Linux test buildRoman Art1-3/+3
2017-07-12Add VC Runtime binaries to Core_Root for ARM testswtgodbe1-0/+1
2017-06-06Test packages from current build in pipelinewtgodbe1-1/+1
2017-05-29Make linux test build workedRoman Artemev1-0/+1
2017-05-22Revert "Fixed tests build on Linux"Russ Keldorph1-2/+1
2017-05-19Test build fixes for LinuxRoman Artemev1-1/+2
2017-05-19Clean up 2.0.0 BuildTools PRwtgodbe1-15/+11
2017-05-16Update Coreclr to 2.0.0 buildtoolswtgodbe1-22/+26
2017-03-15Build Targeting Pack after restoring packageswtgodbe1-1/+1
2017-03-13Pick up new CoreFX packages and abandon old oneswtgodbe1-1/+7
2016-09-01Upgrade xunit version to avoid specialized restoreDavis Goodin1-0/+1
Upgrade xunit from 2.1.0 to 2.2.0-beta2-build3300. Restore xunit.runner.msbuild during normal test build. Remove unused reference to xunit 2.1.0. Replace "2.1.0" with "$(XunitPackageVersion)" for direct path to files. Upgrade xunit used by GCPerfTestFramework and fix helix path. Upgrade Microsoft.DotNet.xunit.performance and Microsoft.DotNet.xunit.performance.metrics to 1.0.0-alpha-build0040. Upgrade XunitPerformanceDependency packages to 1.0.0-alpha-build0040. Include scripts project.json in validation, update them. Don't use helix.targets in generated xunit wrappers. Copy TestTFM defaulting logic from CoreFX dir.props. Tweak default wrapper TFM per platform, and use real RID instead of relying on fallthrough.
2016-08-31Stop groveling for project.json files when building every test.Pat Gavlin1-0/+5
This information is only needed by build.proj. Do not compute it in dir.props, which is included by every test project.
2016-08-22Use versions repo tooling from BuildTools.Davis Goodin1-16/+3
Sets up dependencies.props config. Removes UpdateDependencies powershell script, to be replaced by a call into VersionTools in Maestro automation. Changes UpdatePublishedVersions to pass through to VersionTools for backward compatibility.
2016-03-10Add validation to test build.Davis Goodin1-3/+29
Don't validate generated files, and make the xunit.runner.msbuild workaround only apply to that specific package.
2016-03-02Upgrade CLI version and buildtools, and make build file changes.Davis Goodin1-3/+9
Unset CORE_ROOT in environment on Windows before doing restore so that dotnet CLI doesn't try to run using binaries from the test CORE_ROOT. Restore the xunit wrapper projects in a batch rather than individually to save a lot of time. Work around xunit.runner.msbuild not having compatible package layout by ignoring errors and adding import so that a future fix will work. Hard-code C# language for generated wrapper projects: the $(Language) property wasn't set. Also Change www.myget.org to dotnet.myget.org, as we switched to enterprise myget. Add System.ObjectModel to tests\src\JIT\config\benchmark+serialize\project.json to manually upgrade it to a version that doesn't require lifting for runtime. This fixes System.ObjectModel.dll being missing from CORE_ROOT and causing the test to fail. Switch to v3 nuget feeds and sync NuGet.Configs.
2015-09-17Remove Clean Target in Test Build Proj.Ravi Eda1-5/+0
2015-07-09Move CoreCLR to the modern build tools and dnxMatt Mitchell1-42/+18
This changes moves coreclr onto DNX (same version as corefx). Theoretically, this should allow these tests to target the desktop CLR. All of the old package.config files are gone and replaced with corresponding project.json files. The up front restore behavior is retained. Tests are now buildable individually, though not runnable in a similar fashion.
2015-02-27Use HTTPS for fetching NuGet.exeMatt Ellis1-1/+1
2015-01-30Initial commit to populate CoreCLR repo dotnet-bot1-0/+57
[tfs-changeset: 1407945]