diff options
| author | Xu Cheng | 2015-01-08 15:16:52 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-08 10:27:26 +0000 |
| commit | 1a1080e142d80b35eeb0b02d1ce37b4705950a4d (patch) | |
| tree | c58b05a192dffd26beba6ff694dc3733bf1372ea /Library/Formula | |
| parent | 242247f209269e1a665b8c830b5f323199db4c80 (diff) | |
| download | homebrew-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.rb | 15 |
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 |
