aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorPete Gadomski2014-05-19 10:10:52 -0600
committerJack Nagel2014-05-19 13:24:30 -0500
commit4eb999d7dcdb3818798913830edd9896788fab31 (patch)
tree98637e7c49515ebb7eb74bbdb082d6a33fd1f399 /Library/Formula
parent9fb453b46496cf422eae3edf031454976c89bdca (diff)
downloadhomebrew-4eb999d7dcdb3818798913830edd9896788fab31.tar.bz2
liblas: add test
Add a simple (bad) test for liblas. Per https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook#add-a-test-to-the-formula, a `foo --version` style test is inferior to a functional test, but since finding or grabbing or creating a lasfile is non-trivial, it is arguable that a `--version` test is ok here (or at least better than no test). Users can install `--with-test` to run liblas's internal tests after building for a more complete test of the suite. Closes #29389. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/liblas.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/liblas.rb b/Library/Formula/liblas.rb
index 883c3a1a5..a78360043 100644
--- a/Library/Formula/liblas.rb
+++ b/Library/Formula/liblas.rb
@@ -27,4 +27,8 @@ class Liblas < Formula
system "make install"
end
end
+
+ def test
+ system bin/"liblas-config", "--version"
+ end
end