onetime: add better test.

master
Mike McQuaid 2014-07-04 18:34:03 +01:00
parent 4fe4b207d1
commit bfc49ffddd
1 changed files with 6 additions and 1 deletions

View File

@ -20,6 +20,11 @@ class Onetime < Formula
end
test do
system "#{bin}/onetime", "--version"
(testpath+'pad_data.txt').write "PAD_DATA"
(testpath+'input.txt').write "INPUT"
system "#{bin}/onetime", "-e", "--pad=pad_data.txt", "--no-trace",
"--config=.", "input.txt"
system "#{bin}/onetime", "-d", "--pad=pad_data.txt", "--no-trace",
"--config=.", "input.txt.onetime"
end
end