ann: fix tests

This commit is contained in:
Adam Vandenberg 2012-02-12 21:12:02 -08:00
parent 910a9cd449
commit 6cfc027279

View file

@ -1,17 +1,18 @@
require 'formula'
class Ann < Formula
url 'http://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.zip'
homepage 'http://www.cs.umd.edu/~mount/ANN/'
url 'http://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.zip'
md5 '31267ffbe4e6d04768b3ec21763e9343'
def install
system "make", "macosx-g++"
bin.install Dir["bin/*"]
prefix.install ["lib","sample","doc","include"]
prefix.install "bin", "lib", "sample", "doc", "include"
end
def test
system "#{bin}/ann_sample", "-df", "#{prefix}/sample/data.pts", "-qf", "query.pts"
Dir.chdir "#{prefix}/sample" do
system "#{bin}/ann_sample", "-df", "data.pts", "-qf", "query.pts"
end
end
end