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
47b5996b
Commit
47b5996b
authored
May 17, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: allow tests to specify unit size for psnr comparison
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
7e5880e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Makefile
tests/Makefile
+1
-1
fate-run.sh
tests/fate-run.sh
+2
-1
No files found.
tests/Makefile
View file @
47b5996b
...
...
@@ -131,7 +131,7 @@ fate: $(FATE)
$(FATE)
:
$(FATE_UTILS:%=tests/%$(HOSTEXESUF))
@
echo
"TEST
$
(@:fate-%=%)"
$(Q)$(SRC_PATH)
/tests/fate-run.sh
$@
"
$(SAMPLES)
"
"
$(TARGET_EXEC)
"
"
$(TARGET_PATH)
"
'
$(CMD)
'
'
$(CMP)
'
'
$(REF)
'
'
$(FUZZ)
'
'
$(THREADS)
'
'
$(THREAD_TYPE)
'
'
$(CPUFLAGS)
'
'
$(CMP_SHIFT)
'
'
$(CMP_TARGET)
'
'
$(SIZE_TOLERANCE)
'
$(Q)$(SRC_PATH)
/tests/fate-run.sh
$@
"
$(SAMPLES)
"
"
$(TARGET_EXEC)
"
"
$(TARGET_PATH)
"
'
$(CMD)
'
'
$(CMP)
'
'
$(REF)
'
'
$(FUZZ)
'
'
$(THREADS)
'
'
$(THREAD_TYPE)
'
'
$(CPUFLAGS)
'
'
$(CMP_SHIFT)
'
'
$(CMP_TARGET)
'
'
$(SIZE_TOLERANCE)
'
'
$(CMP_UNIT)
'
fate-list
:
@
printf
'%s\n'
$
(
sort
$(FATE)
)
...
...
tests/fate-run.sh
View file @
47b5996b
...
...
@@ -21,6 +21,7 @@ cpuflags=${11:-all}
cmp_shift
=
${
12
:-
0
}
cmp_target
=
${
13
:-
0
}
size_tolerance
=
${
14
:-
0
}
cmp_unit
=
${
15
:-
2
}
outdir
=
"tests/data/fate"
outfile
=
"
${
outdir
}
/
${
test
}
"
...
...
@@ -40,7 +41,7 @@ compare(){
}
do_tiny_psnr
(){
psnr
=
$(
tests/tiny_psnr
"
$1
"
"
$2
"
2
$cmp_shift
0
)
psnr
=
$(
tests/tiny_psnr
"
$1
"
"
$2
"
$cmp_unit
$cmp_shift
0
)
val
=
$(
expr
"
$psnr
"
:
".*
$3
: *
\(
[0-9.]*
\)
"
)
size1
=
$(
expr
"
$psnr
"
:
'.*bytes: *\([0-9]*\)'
)
size2
=
$(
expr
"
$psnr
"
:
'.*bytes:[ 0-9]*/ *\([0-9]*\)'
)
...
...
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