Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] fix Rust tests to run in-place better/properly
nozzle-test now uses the nozzle_open() provided tap name and creates the up.d/tapname file on-the-fly. knet-test now uses the build-tree crypto/compress plugins rather than the installed ones
- Loading branch information
1 parent
91f66ad
commit 70c2e36
Showing
9 changed files
with
62 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
//extern crate pkg_config; | ||
|
||
fn main() { | ||
|
||
// Tell the compiler to use the build-tree libs & headers for compiling | ||
println!("cargo:rustc-link-search=native=../../../.libs/"); | ||
println!("cargo:rustc-link-lib=knet"); | ||
|
||
cc::Build::new() | ||
.file("src/bin/set_plugin_path.c") | ||
.file("../../../tests/test-common.c") // for find_plugins_path() | ||
.flag("-Wno-unused-parameter") // Needed for test-common.c to compile cleanly | ||
.include("../../..") // for internals.h | ||
.include("../../../..") // for config.h | ||
.include("../../../tests") // for test-common.h | ||
.compile("set_plugin_path"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.