Split up the unit tests crate

This commit is contained in:
Prabhjyot Singh Sodhi 2015-04-16 06:02:11 +05:30 committed by Simon Sapin
parent fe61cdc95d
commit 7b9c9e1453
8 changed files with 135 additions and 51 deletions

29
tests/unit/gfx/Cargo.toml Normal file
View file

@ -0,0 +1,29 @@
[package]
name = "gfx_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
[lib]
name = "gfx_tests"
path = "lib.rs"
doctest = false
[dependencies.gfx]
path = "../../components/gfx"
[dependencies.profile]
path = "../../components/profile"
[dependencies.geom]
git = "https://github.com/servo/rust-geom"
[dependencies.string_cache]
git = "https://github.com/servo/string-cache"
[dependencies.string_cache_plugin]
git = "https://github.com/servo/string-cache"
[dependencies]
cookie = "*"
url = "*"
hyper = "0.3"

View file

@ -1,27 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(plugin)]
#![cfg_attr(test, feature(net, alloc, path, io))]
#![plugin(string_cache_plugin)]
extern crate cssparser;
extern crate geom;
extern crate gfx;
extern crate net;
extern crate net_traits;
extern crate profile;
extern crate script;
extern crate selectors;
extern crate string_cache;
extern crate style;
extern crate util;
extern crate url;
#[cfg(test)] #[path="gfx/mod.rs"] mod gfx_tests;
#[cfg(test)] #[path="net/mod.rs"] mod net_tests;
#[cfg(test)] #[path="script/mod.rs"] mod script_tests;
#[cfg(test)] #[path="style/mod.rs"] mod style_tests;
#[cfg(test)] #[path="util/mod.rs"] mod util_tests;

32
tests/unit/net/Cargo.toml Normal file
View file

@ -0,0 +1,32 @@
[package]
name = "net_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
[lib]
name = "net_tests"
path = "lib.rs"
doctest = false
[dependencies.net]
path = "../../components/net"
[dependencies.net_traits]
path = "../../components/net_traits"
[dependencies.cssparser]
git = "https://github.com/servo/rust-cssparser"
[dependencies.selectors]
git = "https://github.com/servo/rust-selectors"
[dependencies.string_cache]
git = "https://github.com/servo/string-cache"
[dependencies.string_cache_plugin]
git = "https://github.com/servo/string-cache"
[dependencies]
cookie = "*"
url = "*"
hyper = "0.3"

View file

@ -1,31 +1,13 @@
[package]
name = "unit_tests"
name = "script_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
[lib]
name = "unit_tests"
name = "script_tests"
path = "lib.rs"
doctest = false
[dependencies.util]
path = "../../components/util"
[dependencies.gfx]
path = "../../components/gfx"
[dependencies.net]
path = "../../components/net"
[dependencies.net_traits]
path = "../../components/net_traits"
[dependencies.profile]
path = "../../components/profile"
[dependencies.style]
path = "../../components/style"
[dependencies.script]
path = "../../components/script"

View file

@ -0,0 +1,26 @@
[package]
name = "style_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
[lib]
name = "style_tests"
path = "lib.rs"
doctest = false
[dependencies.script]
path = "../../components/script"
[dependencies.selectors]
git = "https://github.com/servo/rust-selectors"
[dependencies.string_cache]
git = "https://github.com/servo/string-cache"
[dependencies.string_cache_plugin]
git = "https://github.com/servo/string-cache"
[dependencies]
cookie = "*"
url = "*"
hyper = "0.3"

View file

@ -0,0 +1,29 @@
[package]
name = "util_tests"
version = "0.0.1"
authors = ["The Servo Project Developers"]
[lib]
name = "util_tests"
path = "lib.rs"
doctest = false
[dependencies.util]
path = "../../components/util"
[dependencies.cssparser]
git = "https://github.com/servo/rust-cssparser"
[dependencies.selectors]
git = "https://github.com/servo/rust-selectors"
[dependencies.string_cache]
git = "https://github.com/servo/string-cache"
[dependencies.string_cache_plugin]
git = "https://github.com/servo/string-cache"
[dependencies]
cookie = "*"
url = "*"
hyper = "0.3"