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
b82be636
Commit
b82be636
authored
Jul 26, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: create report files
Originally committed as revision 24529 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bb5cecdc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
Makefile
Makefile
+3
-1
configure
configure
+2
-0
fate-run.sh
tests/fate-run.sh
+18
-10
No files found.
Makefile
View file @
b82be636
...
...
@@ -271,10 +271,12 @@ fate2 $(FATE_TESTS):
@
echo
"SAMPLES not specified, cannot run FATE"
endif
FATE_UTILS
=
base64
tiny_psnr
fate
:
$(FATE)
fate2
:
$(FATE2_TESTS)
$(FATE)
:
ffmpeg$(EXESUF)
tests/tiny_psnr$(HOSTEXESUF
)
$(FATE)
:
ffmpeg$(EXESUF)
$(FATE_UTILS:%=tests/%$(HOSTEXESUF)
)
@
echo
"TEST
$
(@:fate-%=%)"
$(Q)$(SRC_PATH)
/tests/fate-run.sh
$@
"
$(SAMPLES)
"
"
$(TARGET_EXEC)
"
"
$(TARGET_PATH)
"
'
$(CMD)
'
'
$(CMP)
'
'
$(REF)
'
'
$(FUZZ)
'
...
...
configure
View file @
b82be636
...
...
@@ -3172,6 +3172,8 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
cp_if_changed
$TMPH
libavutil/avconfig.h
echo
"config:
$arch
:
$subarch
:
$cpu
:
$target_os
:
$cc_ident
:
$FFMPEG_CONFIGURATION
"
>
config.fate
test
-n
"
$WARNINGS
"
&&
printf
"
\n
$WARNINGS
"
# build pkg-config files
...
...
tests/fate-run.sh
View file @
b82be636
...
...
@@ -3,6 +3,8 @@
base
=
$(
dirname
$0
)
.
"
${
base
}
/md5.sh"
base64
=
tests/base64
test
=
"
${
1
#fate-
}
"
samples
=
$2
target_exec
=
$3
...
...
@@ -15,6 +17,8 @@ fuzz=$8
outdir
=
"tests/data/fate"
outfile
=
"
${
outdir
}
/
${
test
}
"
errfile
=
"
${
outdir
}
/
${
test
}
.err"
cmpfile
=
"
${
outdir
}
/
${
test
}
.diff"
repfile
=
"
${
outdir
}
/
${
test
}
.rep"
do_tiny_psnr
(){
psnr
=
$(
tests/tiny_psnr
"
$1
"
"
$2
"
2 0 0
)
...
...
@@ -102,17 +106,21 @@ mkdir -p "$outdir"
$command
>
"
$outfile
"
2>
$errfile
err
=
$?
if
!
test
-e
"
$ref
"
;
then
if
test
-e
"
$ref
"
;
then
case
$cmp
in
diff
)
diff
-u
-w
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
oneoff
)
oneoff
"
$ref
"
"
$outfile
"
"
$fuzz
"
>
$cmpfile
;;
stddev
)
stddev
"
$ref
"
"
$outfile
"
"
$fuzz
"
>
$cmpfile
;;
esac
cmperr
=
$?
test
$err
=
0
&&
err
=
$cmperr
test
$err
=
0
||
cat
$cmpfile
else
echo
"reference file '
$ref
' not found"
e
xit
1
e
rr
=
1
fi
case
$cmp
in
diff
)
diff
-u
-w
"
$ref
"
"
$outfile
"
;;
oneoff
)
oneoff
"
$ref
"
"
$outfile
"
"
$fuzz
"
;;
stddev
)
stddev
"
$ref
"
"
$outfile
"
"
$fuzz
"
;;
esac
echo
"
${
test
}
:
${
err
}
:
$(
$base64
<
$cmpfile
)
:
$(
$base64
<
$errfile
)
"
>
$repfile
cmperr
=
$?
test
$err
=
0
&&
err
=
$cmperr
test
$err
=
0
&&
rm
-f
$outfile
$errfile
$cleanfiles
test
$err
=
0
&&
rm
-f
$outfile
$errfile
$cmpfile
$cleanfiles
exit
$err
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