[v5 PATCH] wmvcore/tests: add tests for WMReader methods

Alexandre Julliard julliard at winehq.org
Tue Sep 5 13:43:13 CDT 2017


Jefferson Carpenter <jeffersoncarpenter2 at gmail.com> writes:

> Without a large binary file, how would we test the successful
> processing of an audio or video file? We could use an IWMWriter to
> create it, but then we wouldn't be testing for conformance against the
> Windows API.

In general, to test something like a file loader, you'd want to test
multiple files with various contents, including invalid values for
header fields and the like. This is better done by generating them
instead of including pre-built binaries. Like you said, using IWMWriter
wouldn't guarantee that we are testing the right thing, so we'd most
likely want to generate them by hand somehow.

Again, this would be better done along with the implementation, so we
can get a better idea of what cases would be interesting to test.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list