mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 15:53:08 +00:00
tools: add bisect script
This script works like "git bisect" except that you can specify with "bisect need ffmpeg|ffplay|ffserver|ffprobe" which tool(s) are needed for testing a checkout Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c9de83fefd
commit
c673a90b0d
27
tools/bisect
Executable file
27
tools/bisect
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
need)
|
||||
case $2 in
|
||||
ffmpeg|ffplay|ffprobe|ffserver)
|
||||
echo $2.c >> need
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
start|reset)
|
||||
echo . > need
|
||||
git bisect $*
|
||||
;;
|
||||
skip)
|
||||
git bisect $*
|
||||
;;
|
||||
good|bad)
|
||||
git bisect $*
|
||||
|
||||
until ls `cat need` > /dev/null 2> /dev/null; do
|
||||
git bisect skip || break
|
||||
done
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user