Skip to content

Commit 2211293

Browse files
author
Vinh Tran
committed
Add input files for coverage
1 parent 67e3997 commit 2211293

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

test/bindgen/bindgen_test.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ load("@rules_testing//lib:analysis_test.bzl", "analysis_test", "test_suite")
88
def _test_cc_linkopt_impl(env, target):
99
# Assert
1010
env.expect.that_action(target.actions[0]) \
11-
.contains_at_least_args(["--codegen=link-arg=-framework"])
11+
.contains_at_least_args(["--codegen=link-arg=-shared"])
1212

1313
def _test_cc_linkopt(name):
1414
# Arrange
1515
cc_library(
1616
name = name + "_cc",
1717
srcs = ["simple.cc"],
1818
hdrs = ["simple.h"],
19-
linkopts = ["-framework"],
19+
linkopts = ["-shared"],
2020
tags = ["manual"],
2121
)
2222
rust_bindgen_library(

test/bindgen/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Analysis test shouldn't need this file.
2+
// This is a workaround until
3+
// https://github.com/bazelbuild/rules_rust/issues/2499
4+
// is fixed
5+
fn main() {
6+
println!("Hello world");
7+
}

test/bindgen/simple.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Analysis test shouldn't need this file.
2+
// This is a workaround until
3+
// https://github.com/bazelbuild/rules_rust/issues/2499
4+
// is fixed

test/bindgen/simple.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Analysis test shouldn't need this file.
2+
// This is a workaround until
3+
// https://github.com/bazelbuild/rules_rust/issues/2499
4+
// is fixed

0 commit comments

Comments
 (0)