aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/isl.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/isl.rb b/Library/Formula/isl.rb
index d6571dc25..88eb842e5 100644
--- a/Library/Formula/isl.rb
+++ b/Library/Formula/isl.rb
@@ -41,4 +41,19 @@ class Isl < Formula
system "make", "install"
(share/"gdb/auto-load").install Dir["#{lib}/*-gdb.py"]
end
+
+ test do
+ (testpath/"test.c").write <<-EOS.undent
+ #include <isl/ctx.h>
+
+ int main()
+ {
+ isl_ctx* ctx = isl_ctx_alloc();
+ isl_ctx_free(ctx);
+ return 0;
+ }
+ EOS
+ system ENV.cc, "test.c", "-lisl", "-o", "test"
+ system "./test"
+ end
end