зеркало из https://github.com/microsoft/com-rs.git
Move tests to same folder
This commit is contained in:
Родитель
fe54df3ed4
Коммит
f757860a28
|
@ -1,11 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "macro_tests"
|
|
||||||
version = "0.1.0"
|
|
||||||
authors = ["adrianwithah <lim.weiheng.hadrian@gmail.com>"]
|
|
||||||
edition = "2018"
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
com = { path = "../" }
|
|
||||||
trybuild = "1.0.11"
|
|
|
@ -7,10 +7,18 @@ edition = "2018"
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
|
[[test]]
|
||||||
|
name = "tests"
|
||||||
|
path = "tests/progress.rs"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
trybuild = "1.0.13"
|
||||||
|
com = { path = ".." }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
syn = { version = "1.0.5", features = ["full"] }
|
syn = { version = "1.0.5", features = ["full"] }
|
||||||
quote = "1.0"
|
quote = "1.0"
|
||||||
proc-macro2 = "1.0.1"
|
proc-macro2 = "1.0.1"
|
||||||
com_interface_attribute = { path="com_interface_attribute" }
|
com_interface_attribute = { path = "com_interface_attribute" }
|
||||||
co_class = { path="co_class" }
|
co_class = { path = "co_class" }
|
||||||
aggr_co_class = { path="aggr_co_class" }
|
aggr_co_class = { path = "aggr_co_class" }
|
|
@ -3,5 +3,5 @@ extern crate trybuild;
|
||||||
#[test]
|
#[test]
|
||||||
fn test_com_interface() {
|
fn test_com_interface() {
|
||||||
let t = trybuild::TestCases::new();
|
let t = trybuild::TestCases::new();
|
||||||
t.compile_fail("com_interface/*.rs");
|
t.compile_fail("tests/*.rs");
|
||||||
}
|
}
|
Загрузка…
Ссылка в новой задаче