summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/tests
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-07 13:45:57 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-07 13:45:57 +0100
commit46b82da1232eda0e78b7d8053a65d8de8580b774 (patch)
treefb94d411bb3624e74ba9fb8ec54ed819d6f44db8 /openpgp-ffi/tests
parentf19f52f952a910770901fecea879b0894a9e4979 (diff)
openpgp-ffi, ffi: Always rebuild C doctests.
Diffstat (limited to 'openpgp-ffi/tests')
-rw-r--r--openpgp-ffi/tests/c-tests.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/openpgp-ffi/tests/c-tests.rs b/openpgp-ffi/tests/c-tests.rs
index d82b22ca..fff25f55 100644
--- a/openpgp-ffi/tests/c-tests.rs
+++ b/openpgp-ffi/tests/c-tests.rs
@@ -231,6 +231,11 @@ fn build(include_dirs: &[PathBuf], ldpath: &Path, target_dir: &Path,
.env("LDFLAGS", &format!("-L{:?} -lsequoia_openpgp_ffi", ldpath))
.arg("-C").arg(&target_dir)
.arg("--quiet")
+ // XXX: We don't track the header files as dependencies for
+ // the build. The quick fix is to always rebuild the test,
+ // the more involved fix is to compute the maximum mtime of
+ // the rust source and all the header files.
+ .arg("--always-make")
.arg(target.file_name().unwrap())
.status()
.context("Compiling the C-tests requires Make \