diff --git a/macro_tests/Cargo.toml b/macro_tests/Cargo.toml deleted file mode 100644 index b14f4ed..0000000 --- a/macro_tests/Cargo.toml +++ /dev/null @@ -1,11 +0,0 @@ -[package] -name = "macro_tests" -version = "0.1.0" -authors = ["adrianwithah "] -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" \ No newline at end of file diff --git a/macros/Cargo.toml b/macros/Cargo.toml index ec20493..2ad9fad 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -3,14 +3,23 @@ name = "macros" version = "0.1.0" authors = ["adrianwithah "] edition = "2018" +autotests = false [lib] proc-macro = true +[[test]] +name = "tests" +path = "tests/progress.rs" + +[dev-dependencies] +trybuild = "1.0.13" +com = { path = ".." } + [dependencies] syn = { version = "1.0.5", features = ["full"] } quote = "1.0" proc-macro2 = "1.0.1" -com_interface_attribute = { path="com_interface_attribute" } -co_class = { path="co_class" } -aggr_co_class = { path="aggr_co_class" } \ No newline at end of file +com_interface_attribute = { path = "com_interface_attribute" } +co_class = { path = "co_class" } +aggr_co_class = { path = "aggr_co_class" } \ No newline at end of file diff --git a/macro_tests/com_interface/no_supertrait.rs b/macros/tests/no_supertrait.rs similarity index 100% rename from macro_tests/com_interface/no_supertrait.rs rename to macros/tests/no_supertrait.rs diff --git a/macro_tests/com_interface/no_supertrait.stderr b/macros/tests/no_supertrait.stderr similarity index 100% rename from macro_tests/com_interface/no_supertrait.stderr rename to macros/tests/no_supertrait.stderr diff --git a/macro_tests/src/lib.rs b/macros/tests/progress.rs similarity index 68% rename from macro_tests/src/lib.rs rename to macros/tests/progress.rs index 8f6928d..5134617 100644 --- a/macro_tests/src/lib.rs +++ b/macros/tests/progress.rs @@ -3,5 +3,5 @@ extern crate trybuild; #[test] fn test_com_interface() { let t = trybuild::TestCases::new(); - t.compile_fail("com_interface/*.rs"); + t.compile_fail("tests/no_supertrait.rs"); }