wimlib: add more comprehensive test

Closes Homebrew/homebrew#38275.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
master
Timothy Sutton 2015-04-01 12:59:06 -04:00 committed by Dominyk Tiller
parent deb2f3064e
commit bc82be0d49
1 changed files with 11 additions and 1 deletions

View File

@ -31,6 +31,16 @@ class Wimlib < Formula
end
test do
system bin/"wiminfo", "--help"
# make a directory containing a dummy 1M file
mkdir("foo")
system "dd", "if=/dev/random", "of=foo/bar", "bs=1m", "count=1"
# capture an image
ENV.append "WIMLIB_IMAGEX_USE_UTF8", "1"
system "#{bin}/wimcapture", "foo", "bar.wim"
assert File.exist?("bar.wim")
# get info on the image
system "#{bin}/wiminfo", "bar.wim"
end
end