From b178a61b366eda971432868bbb469673c75adb43 Mon Sep 17 00:00:00 2001 From: Jaime Marquínez Ferrándiz Date: Wed, 31 Dec 2014 17:35:41 +0100 Subject: ffmpeg: Add test and remove `require "formula"` Closes #35398. Signed-off-by: Mike McQuaid --- Library/Formula/ffmpeg.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index 361e65dc4..da5cfe07e 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -1,5 +1,3 @@ -require "formula" - class Ffmpeg < Formula homepage "https://ffmpeg.org/" url "https://www.ffmpeg.org/releases/ffmpeg-2.5.2.tar.bz2" @@ -169,4 +167,11 @@ class Ffmpeg < Formula EOS end end + + test do + # Create an example mp4 file + system "#{bin}/ffmpeg", "-y", "-filter_complex", + "testsrc=rate=1:duration=1", "#{testpath}/video.mp4" + assert (testpath/"video.mp4").exist? + end end -- cgit v1.2.3