onetime: further improve test, fix --devel.

This commit is contained in:
Mike McQuaid 2014-07-04 18:53:07 +01:00
parent 949dd55742
commit 4a233bd080

View file

@ -27,7 +27,7 @@ class Onetime < Formula
end end
test do test do
(testpath+'pad_data.txt').write "PAD_DATA" system "dd", "if=/dev/random", "of=pad_data.txt", "bs=1024", "count=1"
(testpath+'input.txt').write "INPUT" (testpath+'input.txt').write "INPUT"
system "#{bin}/onetime", "-e", "--pad=pad_data.txt", "--no-trace", system "#{bin}/onetime", "-e", "--pad=pad_data.txt", "--no-trace",
"--config=.", "input.txt" "--config=.", "input.txt"