mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
tests: Add test for proper header guard
Reviewed-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
parent
4ca8879d19
commit
5f1aad68c4
@ -16,5 +16,16 @@ git grep -L -E "This file is part of FFmpeg|This file is part of libswresample|"
|
||||
"This program is free software; you can redistribute it and/or modify|"\
|
||||
"This file is placed in the public domain" | grep -E '\.c$|\.h$|\.S$|\.asm$'
|
||||
|
||||
echo Headers without standard inclusion guards:
|
||||
for f in `git ls-files | grep '\.h$'` ; do
|
||||
macro="`echo $f | sed \
|
||||
-e '/\/\|^ff/!{s/\(.*\)/ffmpeg\/\1/}' \
|
||||
-e 's/^lib//' \
|
||||
-e 's/[^A-Za-z0-9]\{1\,\}/_/g' \
|
||||
-e 's/_\(a\|v\|av\)f_/_/' \
|
||||
| tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
|
||||
|
||||
grep -L "^#define $macro$" $f
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
@ -17,3 +17,15 @@ libswresample/log2_tab.c
|
||||
libswscale/log2_tab.c
|
||||
tools/uncoded_frame.c
|
||||
tools/yuvcmp.c
|
||||
Headers without standard inclusion guards:
|
||||
cmdutils_common_opts.h
|
||||
compat/avisynth/avisynth_c.h
|
||||
compat/avisynth/avs/capi.h
|
||||
compat/avisynth/avs/config.h
|
||||
compat/avisynth/avs/types.h
|
||||
compat/avisynth/avxsynth_c.h
|
||||
compat/avisynth/windowsPorts/basicDataTypeConversions.h
|
||||
compat/avisynth/windowsPorts/windows2linux.h
|
||||
compat/float/float.h
|
||||
compat/float/limits.h
|
||||
libavutil/x86_cpu.h
|
||||
|
Loading…
Reference in New Issue
Block a user