From: Jonathan Dieter Date: Thu, 26 Jul 2018 22:03:39 +0000 (+0100) Subject: Add more tests including nocomp test X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~157 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=71218e9ac4df341a2df43ba0a51c6e0224ea810d;p=zchunk.git Add more tests including nocomp test Signed-off-by: Jonathan Dieter --- diff --git a/test/files/LICENSE.nocomp.fodt.zck b/test/files/LICENSE.nocomp.fodt.zck new file mode 100644 index 0000000..e203e41 Binary files /dev/null and b/test/files/LICENSE.nocomp.fodt.zck differ diff --git a/test/meson.build b/test/meson.build index a7cc840..c887ecf 100644 --- a/test/meson.build +++ b/test/meson.build @@ -7,7 +7,97 @@ file_path = join_paths(meson.source_root(), 'test/files') test( 'create and validate empty zchunk file', - empty + empty, + is_parallel: false +) +test( + 'check version info in zck', + zck, + args: [ + '-V' + ] +) +test( + 'check version info in unzck', + unzck, + args: [ + '-V' + ] +) +test( + 'check version info in zckdl', + zckdl, + args: [ + '-V' + ] +) +test( + 'check version info in zck_read_header', + zck_read_header, + args: [ + '-V' + ] +) +test( + 'check version info in zck_delta_size', + zck_delta_size, + args: [ + '-V' + ] +) + +test( + 'check verbosity in unzck', + unzck, + args: [ + '-vvvvv', + 'empty.zck' + ], + is_parallel: false +) +test( + 'check verbosity in zck', + zck, + args: [ + '-vvvvv', + 'empty' + ] +) +test( + 'check verbosity in zckdl', + zckdl, + args: [ + '-vvvvv', + 'file:///empty' + ], + should_fail: true +) +test( + 'check verbosity in zck_read_header', + zck_read_header, + args: [ + '-vvvvvfc', + 'empty.zck' + ] +) +test( + 'check verbosity in zck_delta_size', + zck_delta_size, + args: [ + '-vvvvv', + 'empty.zck', + 'empty.zck' + ] +) +test( + 'decompress auto-chunked file - nocomp', + shacheck, + args: [ + unzck, + 'LICENSE.nocomp.fodt', + '394ed6c2fc4ac47e5ee111a46f2a35b8010a56c7747748216f52105e868d5a3e', + join_paths(file_path, 'LICENSE.nocomp.fodt.zck') + ] ) test( 'decompress and validate automatically chunked zchunk file with no dict',