This repository was archived by the owner on Aug 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
libtest on stable Rust #11
Open
gnzlbg
wants to merge
18
commits into
rust-lang:master
Choose a base branch
from
gnzlbg:clippy_ci
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
40baa36
Add integration test: compiletest-rs
gnzlbg 46991d7
Use termcolor
gnzlbg 425cb60
Add unstable cargo feature enabled by default
gnzlbg ac69870
Remove dependency on FnBox; Bump version
gnzlbg 88b0328
Update integration tests
gnzlbg e2d9b8d
Document unstable cargo feature
gnzlbg 44b024a
Test the beta and stable release channels
gnzlbg a745caa
Test the beta and stable release channels on Windows
gnzlbg 42760f5
Allow the integration test to fail
gnzlbg 4ed5523
Clone compiletest-rs via https instead of ssh
gnzlbg 7119599
Test the unstable cargo feature on Azure
gnzlbg 4f474cb
Make ColorChoice public
gnzlbg 584b2b3
Cosmetic changes
gnzlbg 7192563
Do not rely on the test crate during stage0
gnzlbg 2cb2056
Use hint::black_box instead of test::black_box
gnzlbg 1e98ee4
Remove unnecessary feature(test)
gnzlbg 1f13f7d
Re-add test feature: required for black_box
gnzlbg 6a9e534
Fix bug in black_box unsafe block. Run rustfmt.
crlf0710 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
[workspace] | ||
members = [ "libtest" ] | ||
[package] | ||
authors = ["The Rust Project Developers"] | ||
name = "libtest" | ||
version = "0.0.2" | ||
edition = "2018" | ||
description = "Rust's built in unit-test and micro-benchmarking framework" | ||
license = "MIT/Apache-2.0" | ||
documentation = "https://docs.rs/libterm" | ||
homepage = "https://github.com/rust-lang/libtest" | ||
repository = "https://github.com/rust-lang/libtest" | ||
readme = "README.md" | ||
|
||
[lib] | ||
name = "libtest" | ||
path = "src/lib.rs" | ||
gnzlbg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
crate-type = ["dylib", "rlib"] | ||
gnzlbg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[dependencies] | ||
getopts = "0.2" | ||
termcolor = "1.0" | ||
libc = "0.2" | ||
|
||
[features] | ||
default = [] | ||
unstable = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
parameters: | ||
toolchain: 'nightly' | ||
vmImage: 'ubuntu-16.04' | ||
name: '' | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
steps: | ||
- template: azure-install-rust.yml | ||
parameters: | ||
toolchain: ${{ parameters.toolchain }} | ||
- script: cargo test -vv --all --target ${{ parameters.target }} | ||
- script: cargo test -vv --all --release --target ${{ parameters.target }} | ||
- script: cargo test -vv --all --target ${{ parameters.target }} --features=unstable | ||
- script: cargo test -vv --all --release --target ${{ parameters.target }} --features=unstable |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -ex | ||
|
||
# compile-test | ||
rm -r compiletest-rs || true | ||
git clone https://github.com/laumann/compiletest-rs | ||
( | ||
cd compiletest-rs | ||
sed -i '' 's@libtest = "0.0.2"@libtest = { path = "..", features = [ "unstable" ] }@g' Cargo.toml | ||
echo "[workspace]" >> Cargo.toml | ||
cargo build | ||
cargo build --features=unstable | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.