diff options
| author | Mike McQuaid | 2014-02-01 18:14:57 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-02 08:46:13 +0000 |
| commit | a2e7e385801d7c3d1196700b6a0a86ba92c7ed23 (patch) | |
| tree | bcb8178f861cf593abd89c849590499f68af5ebe /Library/Formula/kdiff3.rb | |
| parent | 64d39db8dbac41e2f89523d952fafa9e39fe5f88 (diff) | |
| download | homebrew-a2e7e385801d7c3d1196700b6a0a86ba92c7ed23.tar.bz2 | |
kdiff3: add test.
Diffstat (limited to 'Library/Formula/kdiff3.rb')
| -rw-r--r-- | Library/Formula/kdiff3.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/kdiff3.rb b/Library/Formula/kdiff3.rb index 35e475556..f66a02542 100644 --- a/Library/Formula/kdiff3.rb +++ b/Library/Formula/kdiff3.rb @@ -13,5 +13,11 @@ class Kdiff3 < Formula prefix.install "releaseQt/kdiff3.app" bin.install_symlink prefix+"kdiff3.app/Contents/MacOS/kdiff3" end + + test do + (testpath/"test1.in").write "test" + (testpath/"test2.in").write "test" + system "#{bin}/kdiff3", "--auto", "test1.in", "test2.in", "-o", "test.out" + assert (testpath/"test.out").exist? end end |
