mpfr: add test
This commit is contained in:
parent
40c173f4a6
commit
01974f4b9e
1 changed files with 17 additions and 0 deletions
|
@ -39,4 +39,21 @@ class Mpfr < Formula
|
|||
system "make", "check"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
#include <gmp.h>
|
||||
#include <mpfr.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
mpfr_t x;
|
||||
mpfr_init(x);
|
||||
mpfr_clear(x);
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "test.c", "-lgmp", "-lmpfr", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue