From d1066ae517411f20da32053e9c88e0ee3e24cecd Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Mon, 29 Sep 2014 15:41:40 -0700 Subject: encfs: add test Closes #32799. --- Library/Formula/encfs.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library') 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__ -- cgit v1.2.3