From 8b78d24680c317aa6a64e04cf65020cf0d80e65c Mon Sep 17 00:00:00 2001 From: wtgodbe Date: Mon, 6 Mar 2017 13:44:21 -0800 Subject: [PATCH] Create Xunit wrappers for 2nd-level test directories instead of top-level Commit migrated from https://github.com/dotnet/coreclr/commit/54d5f431ee2492f8b4f2f12d0b6171c6a846c930 --- src/coreclr/tests/helixprep.proj | 2 +- src/coreclr/tests/runtest.proj | 17 +++++++++++------ src/coreclr/tests/tests.targets | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/coreclr/tests/helixprep.proj b/src/coreclr/tests/helixprep.proj index 6fa271a..0042b3a 100644 --- a/src/coreclr/tests/helixprep.proj +++ b/src/coreclr/tests/helixprep.proj @@ -15,7 +15,7 @@ - + diff --git a/src/coreclr/tests/runtest.proj b/src/coreclr/tests/runtest.proj index 45f2bb7..5b4aa10 100644 --- a/src/coreclr/tests/runtest.proj +++ b/src/coreclr/tests/runtest.proj @@ -29,10 +29,13 @@ $([System.IO.Path]::GetFullPath(%(Identity))) - + + + + $([System.IO.Path]::GetFullPath(%(AllRunnableTestPaths.Identity))) - - + + @@ -118,7 +121,7 @@ $(_XunitEpilog) - $(XunitTestBinBase)\$(Category)\ + $(XunitTestBinBase)\$(CategoryWithSlash)\ ]]> @@ -151,7 +154,9 @@ $(_XunitEpilog) <_CMDDIR_Parent>$([System.IO.Path]::GetDirectoryName($(_CMDDIR))) - $([System.String]::Copy('$(_CMDDIR)').Replace($(_CMDDIR_Parent)\,'')) + <_CMDDIR_Grandparent>$([System.IO.Path]::GetDirectoryName($(_CMDDIR_Parent))) + $([System.String]::Copy('$(_CMDDIR)').Replace($(_CMDDIR_Grandparent)\,'')) + $([System.String]::Copy('$(CategoryWithSlash)').Replace('\','.')) $(Category).XUnitWrapper $(XunitWrapperGeneratedCSDirBase)$(Category) $(XunitWrapperOutputIntermediatedDirBase)$(Category) @@ -435,4 +440,4 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\",""). - + \ No newline at end of file diff --git a/src/coreclr/tests/tests.targets b/src/coreclr/tests/tests.targets index 78028cd..8f00fd7 100644 --- a/src/coreclr/tests/tests.targets +++ b/src/coreclr/tests/tests.targets @@ -14,7 +14,7 @@ - + -- 2.7.4