aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz2014-12-31 17:35:41 +0100
committerMike McQuaid2014-12-31 19:41:46 +0000
commitb178a61b366eda971432868bbb469673c75adb43 (patch)
tree03247ab14d99cea37c8084266acfb4e57df8829d /Library/Formula
parent6b416633e59a5e105bc6c2613ee5ae7885eb1c8c (diff)
downloadhomebrew-b178a61b366eda971432868bbb469673c75adb43.tar.bz2
ffmpeg: Add test and remove `require "formula"`
Closes #35398. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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