diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/encfs.rb | 9 |
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__ |
