aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2013-11-11 10:10:31 +0000
committerMike McQuaid2013-11-11 10:11:13 +0000
commit57175c67e53551a967f028714a5ea01ab8e96388 (patch)
tree2394da8d6f64c330e52cb1e796bbd0a05d0b4dc6 /Library/Formula
parentfff4b71769e64f96f8d126b6c6771cbe9a81f146 (diff)
downloadhomebrew-57175c67e53551a967f028714a5ea01ab8e96388.tar.bz2
zbackup: add test.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/zbackup.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/zbackup.rb b/Library/Formula/zbackup.rb
index 82f9283e7..3d6c3611b 100644
--- a/Library/Formula/zbackup.rb
+++ b/Library/Formula/zbackup.rb
@@ -16,4 +16,9 @@ class Zbackup < Formula
system "cmake", ".", *std_cmake_args
system "make", "install"
end
+
+ test do
+ system "#{bin}/zbackup", '--non-encrypted', 'init', '.'
+ system "echo test | #{bin}/zbackup backup backups/test.bak"
+ end
end