aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-09-29 15:41:40 -0700
committerTim D. Smith2014-09-29 19:00:39 -0700
commitd1066ae517411f20da32053e9c88e0ee3e24cecd (patch)
tree6aba6c17ccfc87c2e6494639e51feda7e09b1624 /Library
parent705710a08a2a66c543b3e4110e0a8b364a0076f1 (diff)
downloadhomebrew-d1066ae517411f20da32053e9c88e0ee3e24cecd.tar.bz2
encfs: add test
Closes #32799.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/encfs.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/encfs.rb b/Library/Formula/encfs.rb
index 9f0f889d7..41d29cc59 100644
--- a/Library/Formula/encfs.rb
+++ b/Library/Formula/encfs.rb
@@ -70,6 +70,15 @@ class Encfs < Formula
system "make"
system "make install"
end
+
+ test do
+ if Pathname.new("/Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs").exist?
+ (testpath/"print-password").write("#!/bin/sh\necho password")
+ chmod 0755, testpath/"print-password"
+ system "yes | #{bin}/encfs --standard --extpass=#{testpath}/print-password #{testpath}/a #{testpath}/b"
+ system "umount", testpath/"b"
+ end
+ end
end
__END__