Skip to content

Commit d834ef5

Browse files
authored
Merge pull request #4364 from tgross35/ctest-reorganization
Replace references to ctest2 with ctest
2 parents fa3e117 + dfd5b06 commit d834ef5

File tree

23 files changed

+53
-62
lines changed

23 files changed

+53
-62
lines changed

ctest/testcrate/Cargo.toml renamed to ctest-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
publish = false
88

99
[build-dependencies]
10-
ctest2 = { path = ".." }
10+
ctest = { path = "../ctest" }
1111
cc = "1.0"
1212

1313
[dependencies]

ctest/testcrate/build.rs renamed to ctest-test/build.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() {
2121
.compile("libt2.a");
2222
println!("cargo:rerun-if-changed=src/t2.c");
2323
println!("cargo:rerun-if-changed=src/t2.h");
24-
ctest2::TestGenerator::new()
24+
ctest::TestGenerator::new()
2525
.header("t1.h")
2626
.include("src")
2727
.fn_cname(|a, b| b.unwrap_or(a).to_string())
@@ -36,7 +36,7 @@ fn main() {
3636
.array_arg(t1_arrays)
3737
.skip_roundtrip(|n| n == "Arr")
3838
.generate("src/t1.rs", "t1gen.rs");
39-
ctest2::TestGenerator::new()
39+
ctest::TestGenerator::new()
4040
.header("t2.h")
4141
.include("src")
4242
.type_name(move |ty, is_struct, is_union| match ty {
@@ -48,9 +48,9 @@ fn main() {
4848
.skip_roundtrip(|_| true)
4949
.generate("src/t2.rs", "t2gen.rs");
5050

51-
ctest2::TestGenerator::new()
51+
ctest::TestGenerator::new()
5252
.header("t1.h")
53-
.language(ctest2::Lang::CXX)
53+
.language(ctest::Lang::CXX)
5454
.include("src")
5555
.fn_cname(|a, b| b.unwrap_or(a).to_string())
5656
.type_name(move |ty, is_struct, is_union| match ty {
@@ -64,9 +64,9 @@ fn main() {
6464
.array_arg(t1_arrays)
6565
.skip_roundtrip(|n| n == "Arr")
6666
.generate("src/t1.rs", "t1gen_cxx.rs");
67-
ctest2::TestGenerator::new()
67+
ctest::TestGenerator::new()
6868
.header("t2.h")
69-
.language(ctest2::Lang::CXX)
69+
.language(ctest::Lang::CXX)
7070
.include("src")
7171
.type_name(move |ty, is_struct, is_union| match ty {
7272
"T2Union" => ty.to_string(),
@@ -78,8 +78,8 @@ fn main() {
7878
.generate("src/t2.rs", "t2gen_cxx.rs");
7979
}
8080

81-
fn t1_volatile(i: ctest2::VolatileItemKind) -> bool {
82-
use ctest2::VolatileItemKind::*;
81+
fn t1_volatile(i: ctest::VolatileItemKind) -> bool {
82+
use ctest::VolatileItemKind::*;
8383
match i {
8484
StructField(ref n, ref f) if n == "V" && f == "v" => true,
8585
Static(ref n) if n == "vol_ptr" => true,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)