Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TargetOS is case-sensitive for iOSSimulator when running tests #50379

Closed
CoffeeFlux opened this issue Mar 29, 2021 · 8 comments · Fixed by #50732
Closed

TargetOS is case-sensitive for iOSSimulator when running tests #50379

CoffeeFlux opened this issue Mar 29, 2021 · 8 comments · Fixed by #50732

Comments

@CoffeeFlux
Copy link
Contributor

./dotnet.sh build src/libraries/System.Threading.Timer/tests/ /t:test /p:targetos=iossimulator /p:targetarchitecture=x64 will fail, but ./dotnet.sh build src/libraries/System.Threading.Timer/tests/ /t:test /p:targetos=iOSSimulator /p:targetarchitecture=x64 will succeed. MSBuild otherwise isn't case-sensitive, so this should probably just be fixed.

@dotnet-issue-labeler dotnet-issue-labeler bot added area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner labels Mar 29, 2021
@ghost
Copy link

ghost commented Mar 29, 2021

Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

./dotnet.sh build src/libraries/System.Threading.Timer/tests/ /t:test /p:targetos=iossimulator /p:targetarchitecture=x64 will fail, but ./dotnet.sh build src/libraries/System.Threading.Timer/tests/ /t:test /p:targetos=iOSSimulator /p:targetarchitecture=x64 will succeed. MSBuild otherwise isn't case-sensitive, so this should probably just be fixed.

Author: CoffeeFlux
Assignees: -
Labels:

area-Infrastructure-libraries, untriaged

Milestone: -

@filipnavara
Copy link
Member

Same for iOS. Got bitten by it.

@CoffeeFlux
Copy link
Contributor Author

cc: @steveisok

@lambdageek

This comment has been minimized.

@CoffeeFlux
Copy link
Contributor Author

CoffeeFlux commented Apr 1, 2021

Yeah, msbuild is case-insensitive by default, which is why I expected that to hold here. In this case, it's failing due to what appears to be having to interface with cmake? Full log: https://gist.github.com/CoffeeFlux/c1e2d1f34c442b9fb4ff42a839a45d29

@steveisok
Copy link
Member

I think it probably has everything to do w/ how we shuffle to cmake in AppleAppBuilder.

.Append(" -DCMAKE_SYSTEM_NAME=" + targetName)

switch (Target)
{
case TargetNames.MacCatalyst:
targetName = "Darwin";
break;
case TargetNames.iOS:
case TargetNames.iOSsim:
targetName = "iOS";
break;
case TargetNames.tvOS:
case TargetNames.tvOSsim:
targetName = "tvOS";
break;
default:
targetName = Target.ToString();
break;
}

@CoffeeFlux
Copy link
Contributor Author

This issue persists, though the error has changed. New log: https://gist.github.com/CoffeeFlux/ebaac87f883ff0ffc36587c4bda25f3b

@MaximLipnin
Copy link
Contributor

Thanks Ryan, I'll take a look.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Apr 5, 2021
@akoeplinger akoeplinger removed the untriaged New issue has not been triaged by the area owner label Apr 7, 2021
@akoeplinger akoeplinger added this to the 6.0.0 milestone Apr 7, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Apr 8, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants