Skip to content

Commit fe2e8c8

Browse files
committed
Build example/test FFI integration test via a Cargo integration test.
1 parent 23f4cd0 commit fe2e8c8

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ env:
1717
script:
1818
- (cd mp4parse && cargo test --verbose)
1919
- (cd mp4parse_capi && cargo test --verbose)
20-
- make -C mp4parse_capi/examples check
2120
- (cd mp4parse_capi && cargo doc)
2221

2322
deploy:

mp4parse_capi/tests/build_ffi_test.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#[cfg(not(windows))]
2+
#[test]
3+
fn build_ffi_test() {
4+
use std::process::Command;
5+
6+
let output = Command::new("make")
7+
.arg("-C")
8+
.arg("examples")
9+
.arg("check")
10+
.output()
11+
.expect("failed to execute process");
12+
13+
println!("status: {}", output.status);
14+
println!("--- stdout ---");
15+
println!("{}", String::from_utf8_lossy(&output.stdout));
16+
println!("-- stderr ---");
17+
println!("{}", String::from_utf8_lossy(&output.stderr));
18+
assert!(output.status.success());
19+
}

0 commit comments

Comments
 (0)