]> git.proxmox.com Git - cargo.git/commit
Partially revert change to testing examples.
authorEric Huss <eric@huss.org>
Thu, 3 May 2018 03:17:53 +0000 (20:17 -0700)
committerEric Huss <eric@huss.org>
Thu, 3 May 2018 03:17:53 +0000 (20:17 -0700)
commitdffc5baeb2c9374a82dc81a2fc6e94b7c9c5fd83
tree6a4e4fddadd21afd7f617d304a3d61d4e77b3e8d
parent6cd841fe4a55d21d8f9a74102e86acb9475d45da
Partially revert change to testing examples.

Fixes #5437

I don't think changing the behavior was quite the correct thing to do.  This new behavior is very similar to the old with a few small differences:

```
cargo test
    ORGINAL: Only builds examples.
    NEW: Builds all examples.  Any example with `test` set is tested.

cargo test --tests
    ORIGINAL: Runs all examples as tests.
    NEW: Only runs examples as tests if `test` is set.

cargo test --examples
    ORIGINAL: Runs all examples as tests.
    NEW: (SAME)

cargo test --example foo
    ORIGINAL: Runs the given example as a test.
    NEW: (SAME)

cargo test --all-targets
    ORIGINAL: Runs all examples as tests.
    NEW: (SAME)
```
src/cargo/ops/cargo_compile.rs
tests/testsuite/test.rs