From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 9EC7F4AC94 for ; Thu, 18 Jul 2024 10:48:57 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 150BD68DA9D; Thu, 18 Jul 2024 13:48:30 +0300 (EEST) Received: from alt2.a-painless.mh.aa.net.uk (alt2.a-painless.mh.aa.net.uk [81.187.30.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 443B468D5B7 for ; Thu, 18 Jul 2024 13:48:21 +0300 (EEST) Received: from 0.b.4.b.7.4.0.8.c.4.a.5.d.8.b.2.0.5.8.0.9.1.8.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:819:850:2b8d:5a4c:8047:b4b0] helo=andrews-2024-laptop.lan) by painless-a.thn.aa.net.uk with esmtp (Exim 4.96) (envelope-from ) id 1sUOgO-000Wr5-27; Thu, 18 Jul 2024 11:48:20 +0100 From: Andrew Sayers To: ffmpeg-devel@ffmpeg.org Date: Thu, 18 Jul 2024 11:46:49 +0100 Message-ID: <20240718104757.2809396-4-ffmpeg-devel@pileofstuff.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240718104757.2809396-1-ffmpeg-devel@pileofstuff.org> References: <20240718104757.2809396-1-ffmpeg-devel@pileofstuff.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 3/3] tests/fate/source-check: Check for AVERROR codes without error strings X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andrew Sayers Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- tests/fate/source-check.sh | 8 ++++++++ tests/ref/fate/source | 1 + 2 files changed, 9 insertions(+) diff --git a/tests/fate/source-check.sh b/tests/fate/source-check.sh index 4d7e175784..71f01cbdec 100755 --- a/tests/fate/source-check.sh +++ b/tests/fate/source-check.sh @@ -45,4 +45,12 @@ git grep -E 'av_clip *\(.*, *(-2 *, *1|-4 *, *3|-8 *, *7|-16 *, *15|-32 *, *31|- ' *, *33554431|-67108864 *, *67108863|-134217728 *, *134217727|-268435456 *, *'\ '268435455|-536870912 *, *536870911|-1073741824 *, *1073741823) *\)'| grep -v fate/source +echo "AVERROR_xxx constants with no associated error string:" +git show HEAD:libavutil/error.c \ + | sed -ne 's/.*AVERROR_\([^ ]*\).*/\1/p' libavutil/error.h \ + | while read ERROR + do git grep -q "$ERROR" libavutil/error.c \ + || echo "Please add ERROR_TAG($ERROR)" + done + exit 0 diff --git a/tests/ref/fate/source b/tests/ref/fate/source index 1703b36c02..b84cc88a6e 100644 --- a/tests/ref/fate/source +++ b/tests/ref/fate/source @@ -28,3 +28,4 @@ libavcodec/bitstream_template.h tools/decode_simple.h Use of av_clip() where av_clip_uintp2() could be used: Use of av_clip() where av_clip_intp2() could be used: +AVERROR_xxx constants with no associated error string: -- 2.45.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".