开发者

Tool for validating a deliverable?

开发者 https://www.devze.com 2023-01-23 21:20 出处:网络
I\'m looking for a tool that validates deliverable (such as a .tgz, .war/.jar, .zip file) against a list or inventory of files that it should contain. Something that checks for every file that should

I'm looking for a tool that validates deliverable (such as a .tgz, .war/.jar, .zip file) against a list or inventory of files that it should contain. Something that checks for every file that should be in the deliverable (per the list).

This is part of a final validation step i开发者_StackOverflow社区n a continuous delivery cycle.

An OSS solution would be ideal. Have not found anything, but want to check before setting off and writing one.


In bash you could do something like:

gzip -dc deliverable.tgz | tar --list > incoming.txt
diff incoming.txt expected.txt

You shouldn't have to write more than a couple lines of a shell script.

0

精彩评论

暂无评论...
验证码 换一张
取 消