Commit 18ee27e67b for ffmpeg
commit 18ee27e67b1dd68d840614fbb97106abda41b3f8
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Tue Sep 22 18:34:36 2026 +0200
tests/fate/libswresample: run the swresample self test
The program round-trips random format, layout and rate pairs and prints
error metrics without checking them, so this only guards against
crashes and failed initialization. 1000 of the 10000 default cases keep
it under a second.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/tests/fate/libswresample.mak b/tests/fate/libswresample.mak
index 19408e6567..bd3b228a58 100644
--- a/tests/fate/libswresample.mak
+++ b/tests/fate/libswresample.mak
@@ -1198,6 +1198,15 @@ FATE_SWR_REALLOC-$(CONFIG_SWRESAMPLE) += fate-swr-resample-realloc
fate-swr-resample-realloc: libswresample/tests/swresample_resample_realloc$(EXESUF)
fate-swr-resample-realloc: CMD = run libswresample/tests/swresample_resample_realloc$(EXESUF)
+# A subset of the 10000 default cases to keep the run time short
+FATE_SWR_SELFTEST-$(CONFIG_SWRESAMPLE) += fate-swr-selftest
+fate-swr-selftest: libswresample/tests/swresample$(EXESUF)
+fate-swr-selftest: CMD = run libswresample/tests/swresample$(EXESUF) 1000
+fate-swr-selftest: CMP = null
+
+FATE-yes += $(FATE_SWR_SELFTEST-yes)
+fate-swr: $(FATE_SWR_SELFTEST-yes)
+
FATE_SWR += $(FATE_SWR_REALLOC-yes)
FATE_FFMPEG += $(FATE_SWR)