Allow passing down an upper case subset category (#104)
authorSantiago Fernandez Madero <safern@microsoft.com>
Mon, 18 Nov 2019 19:09:31 +0000 (11:09 -0800)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2019 19:09:31 +0000 (11:09 -0800)
eng/build.ps1
eng/build.sh

index c2af7b1..8709b36 100644 (file)
@@ -19,6 +19,7 @@ Param(
 function Get-Help() {
   Write-Host "Common settings:"
   Write-Host "  -subset                 Build a subset, print availabe subsets with -subset help"
+  Write-Host "  -subsetCategory         Build a subsetCategory, print availabe subsetCategories with -subset help"
   Write-Host "  -os                     Build operating system: Windows_NT or Unix"
   Write-Host "  -arch                   Build platform: x86, x64, arm or arm64"
   Write-Host "  -configuration <value>  Build configuration: Debug or Release (short: -c)"
@@ -56,6 +57,8 @@ if ($MyInvocation.InvocationName -eq ".") {
   exit 0
 }
 
+$subsetCategory = $subsetCategory.ToLowerInvariant()
+
 # VS Test Explorer support for libraries
 if ($vs) {
   if (-Not (Test-Path $vs)) {
index 190f28d..fb9f0cf 100755 (executable)
@@ -16,6 +16,7 @@ usage()
 {
   echo "Common settings:"
   echo "  --subset                   Build a subset, print availabe subsets with -subset help"
+  echo "  --subsetCategory         Build a subsetCategory, print availabe subsetCategories with -subset help"
   echo "  --os                       Build operating system: Windows_NT or Unix"
   echo "  --arch                     Build platform: x86, x64, arm or arm64"
   echo "  --configuration <value>    Build configuration: Debug or Release (short: -c)"
@@ -64,8 +65,8 @@ while [[ $# > 0 ]]; do
       exit 0
       ;;
      -subsetcategory)
-      subsetCategory=$2
-      arguments="$arguments /p:SubsetCategory=$2"
+      subsetCategory="$(echo "$2" | awk '{print tolower($0)}')"
+      arguments="$arguments /p:SubsetCategory=$subsetCategory"
       shift 2
       ;;
      -subset)