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
5bcfd1ad
Commit
5bcfd1ad
authored
Jun 05, 2002
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use a local dir for tests
Originally committed as revision 668 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
412ba501
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
Makefile
tests/Makefile
+1
-1
regression.sh
tests/regression.sh
+17
-12
No files found.
tests/Makefile
View file @
5bcfd1ad
...
...
@@ -53,5 +53,5 @@ dsptest: dsptest.c $(DSPDEPS)
$(CC)
-O4
-fomit-frame-pointer
-DHAVE_AV_CONFIG_H
-I
..
-I
$(SRC_PATH)
/libavcodec/i386
-I
$(SRC_PATH)
/libavcodec/
-o
$@
$<
-lm
clean
:
rm
-rf
vsynth1
rm
-rf
vsynth1
data
rm
-f
asynth1.sw
*
~ audiogen videogen
tests/regression.sh
View file @
5bcfd1ad
...
...
@@ -6,7 +6,9 @@
#set -x
set
-e
logfile
=
"/tmp/ffmpeg.regression"
datadir
=
"./data"
logfile
=
"
$datadir
/ffmpeg.regression"
# tests to do
if
[
"
$1
"
=
"mpeg4"
]
;
then
...
...
@@ -15,7 +17,7 @@ elif [ "$1" = "mpeg" ] ; then
do_mpeg
=
y
elif
[
"
$1
"
=
"libavtest"
]
;
then
do_libav
=
y
logfile
=
"
/tmp
/libav.regression"
logfile
=
"
$datadir
/libav.regression"
else
do_mpeg
=
y
do_msmpeg4
=
y
...
...
@@ -30,33 +32,36 @@ fi
# various files
ffmpeg
=
"../ffmpeg"
outfile
=
"
/tmp
/a-"
outfile
=
"
$datadir
/a-"
reffile
=
"
$2
"
benchfile
=
"
/tmp
/ffmpeg.bench"
benchfile
=
"
$datadir
/ffmpeg.bench"
raw_src
=
"vsynth1/%d.pgm"
raw_dst
=
"
/tmp
/out.yuv"
raw_dst
=
"
$datadir
/out.yuv"
pcm_src
=
"asynth1.sw"
pcm_dst
=
"/tmp/out.wav"
pcm_dst
=
"
$datadir
/out.wav"
# create the data directory if it does not exists
mkdir
-p
$datadir
function
do_ffmpeg
()
{
f
=
"
$1
"
shift
echo
$ffmpeg
-bitexact
$*
$ffmpeg
-bitexact
-benchmark
$*
>
/tmp
/bench.tmp
$ffmpeg
-bitexact
-benchmark
$*
>
$datadir
/bench.tmp
md5sum
$f
>>
$logfile
expr
match
"
`
cat
/tmp/bench.tmp
`
"
'.*utime=\(.*s\)'
>
/tmp
/bench2.tmp
echo
`
cat
/tmp
/bench2.tmp
`
$f
>>
$benchfile
expr
match
"
`
cat
$datadir
/bench.tmp
`
"
'.*utime=\(.*s\)'
>
$datadir
/bench2.tmp
echo
`
cat
$datadir
/bench2.tmp
`
$f
>>
$benchfile
}
function
do_ffmpeg_crc
()
{
f
=
"
$1
"
shift
echo
$ffmpeg
-y
-bitexact
$*
-f
crc
/tmp
/ffmpeg.crc
$ffmpeg
-y
-bitexact
$*
-f
crc
/tmp
/ffmpeg.crc
echo
$ffmpeg
-y
-bitexact
$*
-f
crc
$datadir
/ffmpeg.crc
$ffmpeg
-y
-bitexact
$*
-f
crc
$datadir
/ffmpeg.crc
echo
-n
"
$f
"
>>
$logfile
cat
/tmp
/ffmpeg.crc
>>
$logfile
cat
$datadir
/ffmpeg.crc
>>
$logfile
}
echo
"ffmpeg regression test"
>
$logfile
...
...
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