diff options
| author | Baptiste Fontaine | 2014-12-14 23:48:17 +0100 |
|---|---|---|
| committer | Jack Nagel | 2014-12-14 18:08:37 -0500 |
| commit | 44588a3a36a341a1b71ab39838b4c5fe5fc78dcc (patch) | |
| tree | 6064de1507561e9738cd34d94db5715828715093 /Library | |
| parent | 3017eb290ec836d5ae0ce7daa14b796ebc0fcf58 (diff) | |
| download | homebrew-44588a3a36a341a1b71ab39838b4c5fe5fc78dcc.tar.bz2 | |
afsctool: test added
Closes #34979.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/afsctool.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/afsctool.rb b/Library/Formula/afsctool.rb index 1e8773a86..4d945e161 100644 --- a/Library/Formula/afsctool.rb +++ b/Library/Formula/afsctool.rb @@ -10,7 +10,14 @@ class Afsctool < Formula ENV.fast cd "afsctool_34" do system "#{ENV.cc} #{ENV.cflags} -lz -framework CoreServices -o afsctool afsctool.c" - bin.install 'afsctool' + bin.install "afsctool" end end + + test do + path = testpath/"foo" + path.write "some text here." + system "#{bin}/afsctool", "-c", path + system "#{bin}/afsctool", "-v", path + end end |
