Skip to content

Commit 847f1f7

Browse files
committed
Auto merge of #5063 - Eh2406:TestssuiteV3, r=matklad
Reorganize integration tests as one crate with many modules. Issue #4867. Rebased V3 This is an automatic rebase of @rochamatcomp's work in #5022, as requested in [#5038](#5038 (comment)). I take no credit for the changes; I just wanted faster test for my work. :-)
2 parents b80af35 + 7a56457 commit 847f1f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+110
-239
lines changed

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,15 @@ features = [
8080

8181
[dev-dependencies]
8282
bufstream = "0.1"
83-
cargotest = { path = "tests/cargotest", version = "0.1" }
83+
cargotest = { path = "tests/testsuite/cargotest", version = "0.1" }
8484
filetime = "0.1"
8585
hamcrest = "=0.1.1"
8686

8787
[[bin]]
8888
name = "cargo"
8989
test = false
9090
doc = false
91+
92+
[[test]]
93+
name = "testsuite"
94+
path = "tests/testsuite/lib.rs"

tests/alt-registry.rs renamed to tests/testsuite/alt_registry.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate cargotest;
2-
extern crate hamcrest;
3-
41
use cargotest::ChannelChanger;
52
use cargotest::support::registry::{self, Package, alt_api_path};
63
use cargotest::support::{paths, project, execs};

tests/bad-config.rs renamed to tests/testsuite/bad_config.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate cargotest;
2-
extern crate hamcrest;
3-
41
use cargotest::support::{project, execs};
52
use cargotest::support::registry::Package;
63
use hamcrest::assert_that;

tests/bad-manifest-path.rs renamed to tests/testsuite/bad_manifest_path.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate hamcrest;
2-
extern crate cargotest;
3-
41
use cargotest::support::{project, execs, main_file, basic_bin_manifest};
52
use hamcrest::{assert_that};
63

tests/bench.rs renamed to tests/testsuite/bench.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
extern crate cargotest;
2-
extern crate cargo;
3-
extern crate hamcrest;
4-
51
use std::str;
62

73
use cargo::util::process;

tests/build.rs renamed to tests/testsuite/build.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
extern crate cargo;
2-
#[macro_use]
3-
extern crate cargotest;
4-
extern crate hamcrest;
5-
extern crate tempdir;
6-
71
use std::env;
82
use std::fs::{self, File};
93
use std::io::prelude::*;

tests/build-auth.rs renamed to tests/testsuite/build_auth.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
extern crate bufstream;
2-
extern crate git2;
3-
extern crate cargotest;
4-
extern crate hamcrest;
5-
1+
use std;
62
use std::collections::HashSet;
73
use std::io::prelude::*;
84
use std::net::TcpListener;
95
use std::thread;
106

7+
use git2;
118
use bufstream::BufStream;
129
use cargotest::support::paths;
1310
use cargotest::support::{project, execs};
File renamed without changes.

tests/build-script.rs renamed to tests/testsuite/build_script.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate cargotest;
2-
extern crate hamcrest;
3-
41
use std::env;
52
use std::fs::{self, File};
63
use std::io::prelude::*;

tests/build-script-env.rs renamed to tests/testsuite/build_script_env.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate cargotest;
2-
extern crate hamcrest;
3-
41
use std::fs::File;
52

63
use cargotest::sleep_ms;

0 commit comments

Comments
 (0)