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

Support running tests on the target platform #12719

Closed
wants to merge 1 commit into from

Commits on Dec 17, 2020

  1. Support running tests on the target platform

    This change *includes* another change by @juliexxia that was previously
    merged and rolled back:
    bazelbuild@c266ac9
    
    This adds an --use_target_platform_for_tests option that changes tests
    to use the execution properties from the target platform rather than
    the host platform. I believe that the code is currently incorrect -
    if the host and target platforms differ, then tests are cross-compiled
    for the target platform, but use the execution properties for the host
    platform.
    
    This matters for remote execution, where host and target platform may
    be different CPU architectures and operating systems (e.g., compiling
    on x64 Linux and running on ARM64 Mac). Currently, such tests will
    typically fail to run if they contain architecture or OS-specific code.
    
    Progress on bazelbuild#10799.
    
    Change-Id: I774bd4442044d6725e78f496b9991368e73ffa00
    ulfjack committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    342543f View commit details
    Browse the repository at this point in the history