mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Merge servo_config and servo_config_tests
This commit is contained in:
parent
ea924e398f
commit
14d0cf595f
7 changed files with 15 additions and 32 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -2891,13 +2891,6 @@ dependencies = [
|
||||||
"xdg 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"xdg 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "servo_config_tests"
|
|
||||||
version = "0.0.1"
|
|
||||||
dependencies = [
|
|
||||||
"servo_config 0.0.1",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "servo_geometry"
|
name = "servo_geometry"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
|
|
@ -8,6 +8,8 @@ publish = false
|
||||||
[lib]
|
[lib]
|
||||||
name = "servo_config"
|
name = "servo_config"
|
||||||
path = "lib.rs"
|
path = "lib.rs"
|
||||||
|
test = false
|
||||||
|
doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
euclid = "0.16"
|
euclid = "0.16"
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
extern crate servo_config;
|
||||||
|
|
||||||
use servo_config::opts::{parse_url_or_filename, parse_pref_from_command_line};
|
use servo_config::opts::{parse_url_or_filename, parse_pref_from_command_line};
|
||||||
use servo_config::prefs::{PrefValue, PREFS};
|
use servo_config::prefs::{PrefValue, PREFS};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
extern crate servo_config;
|
||||||
|
|
||||||
use servo_config::basedir;
|
use servo_config::basedir;
|
||||||
use servo_config::prefs::{PREFS, PrefValue, read_prefs_from_file};
|
use servo_config::prefs::{PREFS, PrefValue, read_prefs_from_file};
|
||||||
use std::fs::{self, File};
|
use std::fs::{self, File};
|
|
@ -231,7 +231,15 @@ class MachCommands(CommandBase):
|
||||||
else:
|
else:
|
||||||
test_patterns.append(test)
|
test_patterns.append(test)
|
||||||
|
|
||||||
self_contained_tests = ["gfx", "layout", "msg", "net", "net_traits", "selectors"]
|
self_contained_tests = [
|
||||||
|
"gfx",
|
||||||
|
"layout",
|
||||||
|
"msg",
|
||||||
|
"net",
|
||||||
|
"net_traits",
|
||||||
|
"selectors",
|
||||||
|
"servo_config",
|
||||||
|
]
|
||||||
if not packages:
|
if not packages:
|
||||||
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
|
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
|
||||||
packages |= set(self_contained_tests)
|
packages |= set(self_contained_tests)
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "servo_config_tests"
|
|
||||||
version = "0.0.1"
|
|
||||||
authors = ["The Servo Project Developers"]
|
|
||||||
license = "MPL-2.0"
|
|
||||||
|
|
||||||
[lib]
|
|
||||||
name = "servo_config_tests"
|
|
||||||
path = "lib.rs"
|
|
||||||
doctest = false
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
servo_config = {path = "../../../components/config"}
|
|
||||||
|
|
|
@ -1,10 +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/. */
|
|
||||||
|
|
||||||
#![cfg(test)]
|
|
||||||
|
|
||||||
extern crate servo_config;
|
|
||||||
|
|
||||||
mod opts;
|
|
||||||
mod prefs;
|
|
Loading…
Add table
Add a link
Reference in a new issue