Skip to content

Conversation

@rbtcollins
Copy link
Contributor

@rbtcollins rbtcollins commented Jul 14, 2020

See the individual commits please

One integration test kept as a smoke test for insurance.
@rbtcollins rbtcollins changed the title Finish unit-testification of Windows update tests More unit testifications Jul 15, 2020
@rbtcollins rbtcollins force-pushed the unit-tests branch 2 times, most recently from e868c0a to 07d031f Compare July 15, 2020 09:10
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks consistent, modulo the -gnu failure case we need to resolve, but what's that comment all about?

@rbtcollins rbtcollins force-pushed the unit-tests branch 3 times, most recently from 2c42bf3 to 86b0459 Compare July 16, 2020 09:23
Just reporting 'stable' is less clear than we can be, and inconsistent,
since a reinstall when a default toolchain has been selected will
already report the toolchain desc (via toolchain.name()).

Also convert install_sets_up_stable into unit test.

This involves making a bunch of test support code available to unit
tests, and breaking maybe_install_rust into a calculating part that can
be tested, as well as a simple execution part which acts on the
calculated result, which we can test separately in functional tests /
tests of that underlying layer / integration tests.

this_host_triple in addition to being moved has been made somewhat more
faithful to from_host_or_build by always returning msvc for windows
hosts. Additionally, since it doesn't need to override the BUILD_TRIPLE,
that was removed from it.
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all seems to make sense.

@rbtcollins rbtcollins merged commit 22dc71a into rust-lang:master Jul 16, 2020
@rbtcollins rbtcollins deleted the unit-tests branch July 16, 2020 11:51
@kinnison
Copy link
Contributor

You are right that it took quite a kicking from some heavy boots, but I think this is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants