Test suite
authorEric Biggers <ebiggers3@gmail.com>
Tue, 14 Aug 2012 00:20:28 +0000 (19:20 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 14 Aug 2012 00:23:57 +0000 (19:23 -0500)
commit5577584b8a50baa958f832ddb9418986e3e38847
tree6817f122d8fe5839474e674078eb40d3e5490887
parent6f7956a06fcf92a304fae93e393e8eaee34e92d5
Test suite

This commit introduces a primitive test suite for wimlib.  It consists of a
shell script that runs some tests on the 'imagex' program.  Run it with `make
check'; only works with in-tree builds.

As a result of writing the test suite I also fixed two issues:
  mount.c: Allow opening empty files in read-only filesystem
  mount.c: Implement utimens() for WIM filesystem
51 files changed:
Makefile.am
src/mount.c
src/timestamp.h
src/wim.c
tests/dir/comp.c [new symlink]
tests/dir/comp.h [new symlink]
tests/dir/decomp.c [new symlink]
tests/dir/decomp.h [new symlink]
tests/dir/dentry.c [new symlink]
tests/dir/dentry.h [new symlink]
tests/dir/endianness.h [new symlink]
tests/dir/extract.c [new symlink]
tests/dir/header.c [new symlink]
tests/dir/integrity.c [new symlink]
tests/dir/io.h [new symlink]
tests/dir/join.c [new symlink]
tests/dir/lookup_table.c [new symlink]
tests/dir/lookup_table.h [new symlink]
tests/dir/lz.c [new symlink]
tests/dir/lzx-common.c [new symlink]
tests/dir/lzx-comp.c [new symlink]
tests/dir/lzx-decomp.c [new symlink]
tests/dir/lzx.h [new symlink]
tests/dir/modify.c [new symlink]
tests/dir/mount.c [new symlink]
tests/dir/resource.c [new symlink]
tests/dir/security.c [new symlink]
tests/dir/security.h [new symlink]
tests/dir/sha1.c [new symlink]
tests/dir/sha1.h [new symlink]
tests/dir/split.c [new symlink]
tests/dir/subdir/empty_file [new file with mode: 0644]
tests/dir/subdir/identical_file1 [new file with mode: 0644]
tests/dir/subdir/identical_file2 [new file with mode: 0644]
tests/dir/subdir/short_file [new file with mode: 0644]
tests/dir/subdir/zeroes [new file with mode: 0644]
tests/dir/timestamp.h [new symlink]
tests/dir/util.c [new symlink]
tests/dir/util.h [new symlink]
tests/dir/wim.c [new symlink]
tests/dir/wimlib.h [new symlink]
tests/dir/wimlib_internal.h [new symlink]
tests/dir/write.c [new symlink]
tests/dir/xml.c [new symlink]
tests/dir/xml.h [new symlink]
tests/dir/xpress-comp.c [new symlink]
tests/dir/xpress-decomp.c [new symlink]
tests/dir/xpress.h [new symlink]
tests/dir2/imagex.c [new symlink]
tests/dir2/mkwinpeimg [new symlink]
tests/test-imagex [new file with mode: 0755]