aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ffmpeg.rb9
1 files changed, 7 insertions, 2 deletions
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