Skip to content

Build example/test FFI integration test via a Cargo integration test. #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ env:
script:
- (cd mp4parse && cargo test --verbose)
- (cd mp4parse_capi && cargo test --verbose)
- make -C mp4parse_capi/examples check
- (cd mp4parse_capi && cargo doc)

deploy:
Expand Down
19 changes: 19 additions & 0 deletions mp4parse_capi/tests/build_ffi_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#[cfg(not(windows))]
#[test]
fn build_ffi_test() {
use std::process::Command;

let output = Command::new("make")
.arg("-C")
.arg("examples")
.arg("check")
.output()
.expect("failed to execute process");

println!("status: {}", output.status);
println!("--- stdout ---");
println!("{}", String::from_utf8_lossy(&output.stdout));
println!("-- stderr ---");
println!("{}", String::from_utf8_lossy(&output.stderr));
assert!(output.status.success());
}