mpfi: add test
Closes Homebrew/homebrew#35313. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
d3e98c8d04
commit
da0c1eb533
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue