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

Speed up the test suite #1229

Merged
merged 3 commits into from
Aug 11, 2017
Merged

Speed up the test suite #1229

merged 3 commits into from
Aug 11, 2017

Commits on Aug 11, 2017

  1. Allow tests to run in parallel

    This commit edits tests to allow tests to run in parallel instead of taking
    global locks. This works by avoiding `env::set_current_dir` and instead tracking
    the current directory in the `Config` structure, where all child processes get
    an updated cwd.
    alexcrichton committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    da59c7e View commit details
    Browse the repository at this point in the history
  2. Improve test performance with smaller binaries

    Test runtime is almost completely dominated by xz, gz, and sha256 of all the
    tarballs that are created. "Hello world" for Rust is a few MB right now on
    Linux, so slim it down massively through the use of `strip`. Also use `Arc` and
    hard links where possible instead of full copies.
    alexcrichton committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    3f79afc View commit details
    Browse the repository at this point in the history
  3. Cache tarball creation in tests

    No need to re-zip everything!
    alexcrichton committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    ace5835 View commit details
    Browse the repository at this point in the history