Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
5f1aad68
Commit
5f1aad68
authored
Jan 29, 2016
by
Timothy Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Add test for proper header guard
Reviewed-by:
Clément Bœsch
<
u@pkh.me
>
parent
4ca8879d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
source-check.sh
tests/fate/source-check.sh
+11
-0
source
tests/ref/fate/source
+12
-0
No files found.
tests/fate/source-check.sh
View file @
5f1aad68
...
...
@@ -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
tests/ref/fate/source
View file @
5f1aad68
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment