summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2024-01-05 23:57:48 -0500
committerHubert Figuière <hub@figuiere.net>2024-01-05 23:57:48 -0500
commitff9f01eb4410e79e1e1c29ad9e29cff1e1abb468 (patch)
treef41249e48b5f22b236a321e4e5d6e4f02f1928f8
parent438d384110b6b045838bb68834eba3e38d9de3db (diff)
build: Run cargo test with make check
- Also fix ordiag tests Signed-off-by: Hubert Figuière <hub@figuiere.net>
-rw-r--r--Makefile.am4
-rw-r--r--NEWS2
-rw-r--r--src/bin/ordiag.rs2
3 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 3b47b74..ff38124 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -131,6 +131,10 @@ libopenraw.la: $(liblibopenraw_la_OBJECTS) $(RUST_FILES)
cargo build --features=capi $(CARGO_VERBOSE) $(CARGO_RELEASE_ARGS) --lib && \
$(LINK) $< && mv $(RUST_LIB) .libs/libopenraw.a
+check-local: $(RUST_FILES)
+ CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \
+ cargo test --features=capi $(CARGO_VERBOSE) $(CARGO_RELEASE_ARGS) --all-targets
+
clean-local:
CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) cargo clean $(CARGO_VERBOSE) $(CARGO_RELEASE_ARGS)
diff --git a/NEWS b/NEWS
index 5d96ee9..7e0b93c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-libopenraw 0.4.0-alpha.1 -
+libopenraw 0.4.0-alpha.1 - 2024/01/05
THIS IS A PRE-RELEASE.
diff --git a/src/bin/ordiag.rs b/src/bin/ordiag.rs
index dfa397c..eb57a3c 100644
--- a/src/bin/ordiag.rs
+++ b/src/bin/ordiag.rs
@@ -304,7 +304,7 @@ mod test {
#[test]
fn test_make_thumbnail_name() {
let filename: &str = "samples/dng/iphone-13-pro_1.57+IMG_0445.DNG";
- let thumbnail = Thumbnail::new(100, 75, DataType::Jpeg, vec![100, 120, 130]);
+ let thumbnail = Thumbnail::with_data(100, 75, DataType::Jpeg, vec![100, 120, 130]);
let n = make_thumbnail_name(filename, &thumbnail);
assert_eq!(
n,