diff options
| author | Pete Gadomski | 2014-05-19 10:10:52 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-05-19 13:24:30 -0500 |
| commit | 4eb999d7dcdb3818798913830edd9896788fab31 (patch) | |
| tree | 98637e7c49515ebb7eb74bbdb082d6a33fd1f399 /Library/Formula | |
| parent | 9fb453b46496cf422eae3edf031454976c89bdca (diff) | |
| download | homebrew-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.rb | 4 |
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 |
