aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2014-02-08 19:00:03 -0800
committerMisty De Meo2014-02-08 19:00:03 -0800
commit7d47bcb3e7cf494778204485a9be9fe041574e6c (patch)
tree441cd9d52fa612f479bfae46398b1fb39cf5cf4c /Library/Formula
parent84713107231373c9762d93b06c2c2497bcb5a180 (diff)
downloadhomebrew-7d47bcb3e7cf494778204485a9be9fe041574e6c.tar.bz2
points2grid: add test
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/points2grid.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Formula/points2grid.rb b/Library/Formula/points2grid.rb
index da0d87704..2a4918685 100644
--- a/Library/Formula/points2grid.rb
+++ b/Library/Formula/points2grid.rb
@@ -9,7 +9,18 @@ class Points2grid < Formula
depends_on 'boost'
def install
+ libexec.install "example.las"
system "cmake", ".", *std_cmake_args
system "make install"
end
+
+ test do
+ mktemp do
+ system bin/"points2grid",
+ "-i", libexec/"example.las",
+ "-o", "example",
+ "--max", "--output_format", "grid"
+ assert_equal 5, %x(grep -c '423.820000' < example.max.grid).strip.to_i
+ end
+ end
end