Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b01b60a2
Commit
b01b60a2
authored
Mar 18, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: add an option to generate the references
Useful to add or update fate tests.
parent
e46a2a73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
fate.texi
doc/fate.texi
+2
-0
Makefile
tests/Makefile
+1
-1
fate-run.sh
tests/fate-run.sh
+7
-0
No files found.
doc/fate.texi
View file @
b01b60a2
...
@@ -85,6 +85,8 @@ by default @var{slice+frame}
...
@@ -85,6 +85,8 @@ by default @var{slice+frame}
Specify a mask to be applied to autodetected CPU flags.
Specify a mask to be applied to autodetected CPU flags.
@item TARGET
_
EXEC
@item TARGET
_
EXEC
Specify or override the wrapper used to run the tests.
Specify or override the wrapper used to run the tests.
@item GEN
Set to @var
{
1
}
to generate the missing or mismatched references.
@end table
@end table
@example
@example
...
...
tests/Makefile
View file @
b01b60a2
...
@@ -118,7 +118,7 @@ fate: $(FATE)
...
@@ -118,7 +118,7 @@ fate: $(FATE)
$(FATE)
:
$(FATE_UTILS:%=tests/%$(HOSTEXESUF))
$(FATE)
:
$(FATE_UTILS:%=tests/%$(HOSTEXESUF))
@
echo
"TEST
$
(@:fate-%=%)"
@
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)
'
'
$(CMP_UNIT)
'
$(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)
'
'
$(GEN)
'
fate-list
:
fate-list
:
@
printf
'%s\n'
$
(
sort
$(FATE)
)
@
printf
'%s\n'
$
(
sort
$(FATE)
)
...
...
tests/fate-run.sh
View file @
b01b60a2
...
@@ -22,6 +22,7 @@ cmp_shift=${12:-0}
...
@@ -22,6 +22,7 @@ cmp_shift=${12:-0}
cmp_target
=
${
13
:-
0
}
cmp_target
=
${
13
:-
0
}
size_tolerance
=
${
14
:-
0
}
size_tolerance
=
${
14
:-
0
}
cmp_unit
=
${
15
:-
2
}
cmp_unit
=
${
15
:-
2
}
gen
=
${
16
:-
no
}
outdir
=
"tests/data/fate"
outdir
=
"tests/data/fate"
outfile
=
"
${
outdir
}
/
${
test
}
"
outfile
=
"
${
outdir
}
/
${
test
}
"
...
@@ -189,5 +190,11 @@ fi
...
@@ -189,5 +190,11 @@ fi
echo
"
${
test
}
:
${
sig
:-
$err
}
:
$(
$base64
<
$cmpfile
)
:
$(
$base64
<
$errfile
)
"
>
$repfile
echo
"
${
test
}
:
${
sig
:-
$err
}
:
$(
$base64
<
$cmpfile
)
:
$(
$base64
<
$errfile
)
"
>
$repfile
if
test
$err
!=
0
&&
test
$gen
!=
"no"
;
then
echo
"GEN
$ref
"
cp
-f
"
$outfile
"
"
$ref
"
err
=
$?
fi
test
$err
=
0
&&
rm
-f
$outfile
$errfile
$cmpfile
$cleanfiles
test
$err
=
0
&&
rm
-f
$outfile
$errfile
$cmpfile
$cleanfiles
exit
$err
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