Timeout on all to find problematic test in GH action runner

Former-commit-id: 1b42eb2c1a
This commit is contained in:
Malte Rosenbjerg 2020-10-25 17:34:38 +01:00
parent 88a099523d
commit c00562bb31

View file

@ -265,26 +265,26 @@ public void ConvertFromPipe(ContainerFormat type, System.Drawing.Imaging.PixelFo
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToMP4() public void Video_ToMP4()
{ {
Convert(VideoType.Mp4); Convert(VideoType.Mp4);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToMP4_YUV444p() public void Video_ToMP4_YUV444p()
{ {
Convert(VideoType.Mp4, (a) => Assert.IsTrue(a.VideoStreams.First().PixelFormat == "yuv444p"), Convert(VideoType.Mp4, (a) => Assert.IsTrue(a.VideoStreams.First().PixelFormat == "yuv444p"),
new ForcePixelFormat("yuv444p")); new ForcePixelFormat("yuv444p"));
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToMP4_Args() public void Video_ToMP4_Args()
{ {
Convert(VideoType.Mp4, new VideoCodecArgument(VideoCodec.LibX264)); Convert(VideoType.Mp4, new VideoCodecArgument(VideoCodec.LibX264));
} }
[DataTestMethod] [DataTestMethod, Timeout(10000)]
[DataRow(System.Drawing.Imaging.PixelFormat.Format24bppRgb)] [DataRow(System.Drawing.Imaging.PixelFormat.Format24bppRgb)]
[DataRow(System.Drawing.Imaging.PixelFormat.Format32bppArgb)] [DataRow(System.Drawing.Imaging.PixelFormat.Format32bppArgb)]
// [DataRow(PixelFormat.Format48bppRgb)] // [DataRow(PixelFormat.Format48bppRgb)]
@ -334,7 +334,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Async()
.WaitForResult(); .WaitForResult();
} }
[TestMethod] [TestMethod, Timeout(10000)]
public async Task TestDuplicateRun() public async Task TestDuplicateRun()
{ {
FFMpegArguments.FromFileInput(VideoLibrary.LocalVideo) FFMpegArguments.FromFileInput(VideoLibrary.LocalVideo)
@ -354,13 +354,13 @@ public void Video_ToMP4_Args_StreamOutputPipe()
ConvertToStreamPipe(new VideoCodecArgument(VideoCodec.LibX264), new ForceFormatArgument("matroska")); ConvertToStreamPipe(new VideoCodecArgument(VideoCodec.LibX264), new ForceFormatArgument("matroska"));
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToTS() public void Video_ToTS()
{ {
Convert(VideoType.Ts); Convert(VideoType.Ts);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToTS_Args() public void Video_ToTS_Args()
{ {
Convert(VideoType.Ts, Convert(VideoType.Ts,
@ -378,13 +378,13 @@ public void Video_ToTS_Args_Pipe(System.Drawing.Imaging.PixelFormat pixelFormat)
ConvertFromPipe(VideoType.Ts, pixelFormat, new ForceFormatArgument(VideoType.Ts)); ConvertFromPipe(VideoType.Ts, pixelFormat, new ForceFormatArgument(VideoType.Ts));
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToOGV_Resize() public void Video_ToOGV_Resize()
{ {
Convert(VideoType.Ogv, true, VideoSize.Ed); Convert(VideoType.Ogv, true, VideoSize.Ed);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToOGV_Resize_Args() public void Video_ToOGV_Resize_Args()
{ {
Convert(VideoType.Ogv, new ScaleArgument(VideoSize.Ed), new VideoCodecArgument(VideoCodec.LibTheora)); Convert(VideoType.Ogv, new ScaleArgument(VideoSize.Ed), new VideoCodecArgument(VideoCodec.LibTheora));
@ -399,13 +399,13 @@ public void Video_ToOGV_Resize_Args_Pipe(System.Drawing.Imaging.PixelFormat pixe
ConvertFromPipe(VideoType.Ogv, pixelFormat, new ScaleArgument(VideoSize.Ed), new VideoCodecArgument(VideoCodec.LibTheora)); ConvertFromPipe(VideoType.Ogv, pixelFormat, new ScaleArgument(VideoSize.Ed), new VideoCodecArgument(VideoCodec.LibTheora));
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToMP4_Resize() public void Video_ToMP4_Resize()
{ {
Convert(VideoType.Mp4, true, VideoSize.Ed); Convert(VideoType.Mp4, true, VideoSize.Ed);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToMP4_Resize_Args() public void Video_ToMP4_Resize_Args()
{ {
Convert(VideoType.Mp4, new ScaleArgument(VideoSize.Ld), new VideoCodecArgument(VideoCodec.LibX264)); Convert(VideoType.Mp4, new ScaleArgument(VideoSize.Ld), new VideoCodecArgument(VideoCodec.LibX264));
@ -420,31 +420,31 @@ public void Video_ToMP4_Resize_Args_Pipe(System.Drawing.Imaging.PixelFormat pixe
ConvertFromPipe(VideoType.Mp4, pixelFormat, new ScaleArgument(VideoSize.Ld), new VideoCodecArgument(VideoCodec.LibX264)); ConvertFromPipe(VideoType.Mp4, pixelFormat, new ScaleArgument(VideoSize.Ld), new VideoCodecArgument(VideoCodec.LibX264));
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToOGV() public void Video_ToOGV()
{ {
Convert(VideoType.Ogv); Convert(VideoType.Ogv);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToMP4_MultiThread() public void Video_ToMP4_MultiThread()
{ {
Convert(VideoType.Mp4, true); Convert(VideoType.Mp4, true);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToTS_MultiThread() public void Video_ToTS_MultiThread()
{ {
Convert(VideoType.Ts, true); Convert(VideoType.Ts, true);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_ToOGV_MultiThread() public void Video_ToOGV_MultiThread()
{ {
Convert(VideoType.Ogv, true); Convert(VideoType.Ogv, true);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_Snapshot_InMemory() public void Video_Snapshot_InMemory()
{ {
var output = Input.OutputLocation(ImageType.Png); var output = Input.OutputLocation(ImageType.Png);
@ -465,7 +465,7 @@ public void Video_Snapshot_InMemory()
} }
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_Snapshot_PersistSnapshot() public void Video_Snapshot_PersistSnapshot()
{ {
var output = Input.OutputLocation(ImageType.Png); var output = Input.OutputLocation(ImageType.Png);
@ -488,7 +488,7 @@ public void Video_Snapshot_PersistSnapshot()
} }
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_Join() public void Video_Join()
{ {
var output = Input.OutputLocation(VideoType.Mp4); var output = Input.OutputLocation(VideoType.Mp4);
@ -522,7 +522,7 @@ public void Video_Join()
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_Join_Image_Sequence() public void Video_Join_Image_Sequence()
{ {
try try
@ -560,7 +560,7 @@ public void Video_Join_Image_Sequence()
} }
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_With_Only_Audio_Should_Extract_Metadata() public void Video_With_Only_Audio_Should_Extract_Metadata()
{ {
var video = FFProbe.Analyse(VideoLibrary.LocalVideoAudioOnly.FullName); var video = FFProbe.Analyse(VideoLibrary.LocalVideoAudioOnly.FullName);
@ -570,7 +570,7 @@ public void Video_With_Only_Audio_Should_Extract_Metadata()
// Assert.AreEqual(1.25, video.Size); // Assert.AreEqual(1.25, video.Size);
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_Duration() public void Video_Duration()
{ {
var video = FFProbe.Analyse(VideoLibrary.LocalVideo.FullName); var video = FFProbe.Analyse(VideoLibrary.LocalVideo.FullName);
@ -598,7 +598,7 @@ public void Video_Duration()
} }
} }
[TestMethod] [TestMethod, Timeout(10000)]
public void Video_UpdatesProgress() public void Video_UpdatesProgress()
{ {
var output = Input.OutputLocation(VideoType.Mp4); var output = Input.OutputLocation(VideoType.Mp4);
@ -614,9 +614,9 @@ public void Video_UpdatesProgress()
try try
{ {
var success = FFMpegArguments var success = FFMpegArguments
.FromFileInput(VideoLibrary.LocalVideo, opt => opt .FromFileInput(VideoLibrary.LocalVideo)
.WithDuration(TimeSpan.FromSeconds(8))) .OutputToFile(output, false, opt => opt
.OutputToFile(output) .WithDuration(TimeSpan.FromSeconds(2)))
.NotifyOnProgress(OnPercentageProgess, analysis.Duration) .NotifyOnProgress(OnPercentageProgess, analysis.Duration)
.NotifyOnProgress(OnTimeProgess) .NotifyOnProgress(OnTimeProgess)
.ProcessSynchronously(); .ProcessSynchronously();