mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
fate: Add basic license header check
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
fc97b1f091
commit
ed18c49f5f
@ -150,6 +150,7 @@ include $(SRC_PATH)/tests/fate/qt.mak
|
|||||||
include $(SRC_PATH)/tests/fate/qtrle.mak
|
include $(SRC_PATH)/tests/fate/qtrle.mak
|
||||||
include $(SRC_PATH)/tests/fate/real.mak
|
include $(SRC_PATH)/tests/fate/real.mak
|
||||||
include $(SRC_PATH)/tests/fate/screen.mak
|
include $(SRC_PATH)/tests/fate/screen.mak
|
||||||
|
include $(SRC_PATH)/tests/fate/source.mak
|
||||||
include $(SRC_PATH)/tests/fate/subtitles.mak
|
include $(SRC_PATH)/tests/fate/subtitles.mak
|
||||||
include $(SRC_PATH)/tests/fate/utvideo.mak
|
include $(SRC_PATH)/tests/fate/utvideo.mak
|
||||||
include $(SRC_PATH)/tests/fate/video.mak
|
include $(SRC_PATH)/tests/fate/video.mak
|
||||||
|
@ -87,6 +87,11 @@ probefmt(){
|
|||||||
run ffprobe -show_entries format=format_name -print_format default=nw=1:nk=1 -v 0 "$@"
|
run ffprobe -show_entries format=format_name -print_format default=nw=1:nk=1 -v 0 "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runlocal(){
|
||||||
|
test "${V:-0}" -gt 0 && echo ${base}/"$@" ${base} >&3
|
||||||
|
${base}/"$@" ${base}
|
||||||
|
}
|
||||||
|
|
||||||
probeframes(){
|
probeframes(){
|
||||||
run ffprobe -show_frames -v 0 "$@"
|
run ffprobe -show_frames -v 0 "$@"
|
||||||
}
|
}
|
||||||
|
20
tests/fate/source-check.sh
Executable file
20
tests/fate/source-check.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd "$1"/..
|
||||||
|
|
||||||
|
git --version > /dev/null || { cat tests/ref/fate/source ; exit 0; }
|
||||||
|
|
||||||
|
echo Files without standard license headers:
|
||||||
|
git grep -L -E "This file is part of FFmpeg|This file is part of libswresample|"\
|
||||||
|
"Permission to use, copy, modify, and/or distribute this software for any|"\
|
||||||
|
"Permission is hereby granted, free of charge, to any person|"\
|
||||||
|
"Permission is hereby granted to use, copy, modify, and distribute this|"\
|
||||||
|
"Permission is granted to anyone to use this software for any purpose|"\
|
||||||
|
"This work is licensed under the terms of the GNU GPL|"\
|
||||||
|
"Redistribution and use in source and binary forms, with or without modification|"\
|
||||||
|
"This library is free software; you can redistribute it and/or|"\
|
||||||
|
"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$'
|
||||||
|
|
||||||
|
|
||||||
|
exit 0
|
3
tests/fate/source.mak
Normal file
3
tests/fate/source.mak
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
FATE += fate-source
|
||||||
|
fate-source: CMD = runlocal fate/source-check.sh
|
18
tests/ref/fate/source
Normal file
18
tests/ref/fate/source
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Files without standard license headers:
|
||||||
|
cmdutils_common_opts.h
|
||||||
|
compat/avisynth/windowsPorts/basicDataTypeConversions.h
|
||||||
|
compat/avisynth/windowsPorts/windows2linux.h
|
||||||
|
libavcodec/file_open.c
|
||||||
|
libavcodec/log2_tab.c
|
||||||
|
libavcodec/mathops.c
|
||||||
|
libavcodec/reverse.c
|
||||||
|
libavdevice/file_open.c
|
||||||
|
libavfilter/log2_tab.c
|
||||||
|
libavformat/file_open.c
|
||||||
|
libavformat/golomb_tab.c
|
||||||
|
libavformat/log2_tab.c
|
||||||
|
libavutil/x86_cpu.h
|
||||||
|
libswresample/log2_tab.c
|
||||||
|
libswscale/log2_tab.c
|
||||||
|
tools/uncoded_frame.c
|
||||||
|
tools/yuvcmp.c
|
Loading…
x
Reference in New Issue
Block a user