1. 28 2月, 2021 1 次提交
  2. 21 2月, 2021 1 次提交
  3. 15 2月, 2021 1 次提交
  4. 01 2月, 2021 1 次提交
  5. 30 1月, 2021 1 次提交
  6. 28 1月, 2021 1 次提交
  7. 20 1月, 2021 3 次提交
  8. 04 1月, 2021 1 次提交
  9. 31 12月, 2020 2 次提交
  10. 30 12月, 2020 2 次提交
  11. 16 12月, 2020 1 次提交
  12. 02 12月, 2020 1 次提交
    • N
      Add tests for rustdoc json · 1098cce2
      Nixon Enraght-Moony 提交于
      Move rustdoc/rustdoc-json to rustdoc-json
      
      Scaffold rustdoc-json test mode
      
      Implement run_rustdoc_json_test
      
      Fix up python
      
      Make tidy happy
      1098cce2
  13. 29 11月, 2020 2 次提交
  14. 19 11月, 2020 1 次提交
  15. 04 11月, 2020 1 次提交
    • M
      Print a summary of which test suite failed · f289a876
      Mark Rousskov 提交于
      Especially on CI, where cross-compiling is common and single builder may end up
      with multiple hosts and multiple targets, it can be annoying to scroll back to
      the nearest start of test marker. This prints out a summary of the test suite
      being run directly in compiletest.
      f289a876
  16. 03 11月, 2020 2 次提交
  17. 26 10月, 2020 1 次提交
  18. 19 10月, 2020 1 次提交
  19. 13 10月, 2020 1 次提交
  20. 21 9月, 2020 2 次提交
  21. 18 9月, 2020 1 次提交
    • P
      bootstrap: move the version number to a plaintext file · b9af3e30
      Pietro Albini 提交于
      The Rust version number is currently embedded in bootstrap's source
      code, which makes it hard to update it automatically or access it
      outside of ./x.py (as you'd have to parse the source code).
      
      This commit moves the version number to a standalone plaintext file,
      which makes accessing or updating it trivial.
      b9af3e30
  22. 15 9月, 2020 2 次提交
  23. 11 9月, 2020 1 次提交
    • M
      Remove host parameter from step configurations · 3193d52a
      Mark Rousskov 提交于
      rustc is a natively cross-compiling compiler, and generally none of our steps
      should care whether they are using a compiler built of triple A or B, just the
      --target directive being passed to the running compiler. e.g., when building for
      some target C, you don't generally want to build two stds: one with a host A
      compiler and the other with a host B compiler. Just one std is sufficient.
      3193d52a
  24. 07 9月, 2020 4 次提交
  25. 30 8月, 2020 1 次提交
  26. 29 8月, 2020 1 次提交
  27. 24 8月, 2020 1 次提交
    • A
      Introduce expect snapshot testing library into rustc · f7be59c5
      Aleksey Kladov 提交于
      Snapshot testing is a technique for writing maintainable unit tests.
      Unlike usual `assert_eq!` tests, snapshot tests allow
      to *automatically* upgrade expected values on test failure.
      In a sense, snapshot tests are inline-version of our beloved
      UI-tests.
      
      Example:
      
      ![expect](https://user-images.githubusercontent.com/1711539/90888810-3bcc8180-e3b7-11ea-9626-d06e89e1a0bb.gif)
      
      A particular library we use, `expect_test` provides an `expect!`
      macro, which creates a sort of self-updating string literal (by using
      `file!` macro). Self-update is triggered by setting `UPDATE_EXPECT`
      environmental variable (this info is printed during the test failure).
      This library was extracted from rust-analyzer, where we use it for
      most of our tests.
      
      There are some other, more popular snapshot testing libraries:
      
      * https://github.com/mitsuhiko/insta
      * https://github.com/aaronabramov/k9
      
      The main differences of `expect` are:
      
      * first-class snapshot objects (so, tests can be written as functions,
        rather than as macros)
      * focus on inline-snapshots (but file snapshots are also supported)
      * restricted feature set (only `assert_eq` and `assert_debug_eq`)
      * no extra runtime (ie, no `cargo insta`)
      
      See https://github.com/rust-analyzer/rust-analyzer/pull/5101 for a
      an extended comparison.
      
      It is unclear if this testing style will stick with rustc in the long
      run. At the moment, rustc is mainly tested via integrated UI tests.
      But in the library-ified world, unit-tests will become somewhat more
      important (that's why use use `rustc_lexer` library-ified library as
      an example in this PR). Given that the cost of removal shouldn't be
      too high, it probably makes sense to just see if this flies!
      f7be59c5
  28. 15 8月, 2020 1 次提交
  29. 12 8月, 2020 1 次提交