theora: add test (#23199)

master
Adam Buckland 2018-01-23 15:45:53 +00:00 committed by FX Coudert
parent 23098a60e1
commit 45a85d3968
1 changed files with 16 additions and 0 deletions

View File

@ -48,4 +48,20 @@ class Theora < Formula
system "./configure", *args
system "make", "install"
end
test do
(testpath/"test.c").write <<~EOS
#include <theora/theora.h>
int main()
{
theora_info inf;
theora_info_init(&inf);
theora_info_clear(&inf);
return 0;
}
EOS
system ENV.cc, "-L#{lib}", "-ltheora", "test.c", "-o", "test"
system "./test"
end
end