Unverified Commit 94a32eae authored by Raphael Zumer's avatar Raphael Zumer Committed by GitHub

Add encode-decode test for various frame dimensions (#382)

* Ignore aom.rs in all directories

* Add encode-decode test for various frame dimensions

* Remove redundant .gitignore

* Add testing subsection in README.md

* Reduce runtime of dimensions encode-decode test

* Comment out failing dimensions in decoding test
parent f7d8bdb7
......@@ -3,4 +3,4 @@ target
Cargo.lock
*.y4m
*.ivf
src/lib/aom.rs
aom.rs
......@@ -68,6 +68,7 @@ make -j8
# Contributing
## Coding style
Check code formatting with [rustfmt](https://github.com/rust-lang-nursery/rustfmt) before submitting a PR.
rav1e currently uses a [forked version](https://github.com/mbebenita/rustfmt) of rustfmt.
......@@ -92,6 +93,17 @@ You should also try [clippy](https://github.com/rust-lang-nursery/rust-clippy).
cargo +nightly clippy
```
## Testing
Run unit tests with:
```
cargo test
```
Run encode-decode integration tests with:
```
cargo test --release --features=decode_test -- --ignored
```
# Getting in Touch
Come chat with us on the IRC channel #daala on Freenode! If you don't have IRC set
......
......@@ -2023,6 +2023,22 @@ mod test_encode_decode {
}
}
static DIMENSIONS: &[(usize, usize)] = &[/*(2, 2), (4, 4), */(8, 8),
(16, 16), (32, 32), (64, 64), (128, 128), (256, 256),
(512, 512), (1024, 1024)/*, (2048, 2048)*/];
#[test]
#[ignore]
fn dimensions() {
let quantizer = 100;
let limit = 1;
let speed = 4;
for (w, h) in DIMENSIONS.iter() {
encode_decode(*w, *h, speed, quantizer, limit);
}
}
#[test]
#[ignore]
fn quantizer() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment