开发者

Tool for validating a deliverable?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜