diff options
| author | Xu Cheng | 2014-12-28 22:53:58 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-28 16:58:52 +0000 |
| commit | f77669697aa8a38b3a2825d0d9969953fbbd873e (patch) | |
| tree | b92b517354ef93e930ab9da0287a1753f331e2f1 /Library/Formula/mpfi.rb | |
| parent | 9e5ab20e6ae84af7b170257093ee172c9034e1f3 (diff) | |
| download | homebrew-f77669697aa8a38b3a2825d0d9969953fbbd873e.tar.bz2 | |
mpfi: add test
Closes #35313.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/mpfi.rb')
| -rw-r--r-- | Library/Formula/mpfi.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/mpfi.rb b/Library/Formula/mpfi.rb index a921a2c25..09c731db1 100644 --- a/Library/Formula/mpfi.rb +++ b/Library/Formula/mpfi.rb @@ -15,4 +15,20 @@ class Mpfi < Formula system "make", "check" system "make", "install" end + + test do + (testpath/"test.c").write <<-EOS.undent + #include <mpfi.h> + + int main() + { + mpfi_t x; + mpfi_init(x); + mpfi_clear(x); + return 0; + } + EOS + system ENV.cc, "test.c", "-lgmp", "-lmpfr", "-lmpfi", "-o", "test" + system "./test" + end end |
