aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-01-08 15:16:52 +0800
committerMike McQuaid2015-01-08 10:27:26 +0000
commit1a1080e142d80b35eeb0b02d1ce37b4705950a4d (patch)
treec58b05a192dffd26beba6ff694dc3733bf1372ea /Library/Formula
parent242247f209269e1a665b8c830b5f323199db4c80 (diff)
downloadhomebrew-1a1080e142d80b35eeb0b02d1ce37b4705950a4d.tar.bz2
isl: add test
Closes #35655. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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