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
40fa14f7
Commit
40fa14f7
authored
May 03, 2012
by
Mans Rullgard
Committed by
Alex Converse
May 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: Add oneline comparison method
Signed-off-by:
Alex Converse
<
alex.converse@gmail.com
>
parent
64953f67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
fate-run.sh
tests/fate-run.sh
+8
-1
No files found.
tests/fate-run.sh
View file @
40fa14f7
...
@@ -60,6 +60,12 @@ stddev(){
...
@@ -60,6 +60,12 @@ stddev(){
do_tiny_psnr
"
$1
"
"
$2
"
stddev
do_tiny_psnr
"
$1
"
"
$2
"
stddev
}
}
oneline
(){
val
=
$(
cat
"
$2
"
)
test
x
"
$val
"
=
x
"
$1
"
||
{
r
=
$?
;
printf
--
'-%s\n+%s\n'
"
$ref
"
"
$val
"
;
}
return
${
r
:-
0
}
}
run
(){
run
(){
test
"
${
V
:-
0
}
"
-gt
0
&&
echo
"
$target_exec
"
$target_path
/
"
$@
"
>
&3
test
"
${
V
:-
0
}
"
-gt
0
&&
echo
"
$target_exec
"
$target_path
/
"
$@
"
>
&3
$target_exec
$target_path
/
"
$@
"
$target_exec
$target_path
/
"
$@
"
...
@@ -147,11 +153,12 @@ if [ $err -gt 128 ]; then
...
@@ -147,11 +153,12 @@ if [ $err -gt 128 ]; then
test
"
${
sig
}
"
=
"
${
sig
%[!A-Za-z]*
}
"
||
unset
sig
test
"
${
sig
}
"
=
"
${
sig
%[!A-Za-z]*
}
"
||
unset
sig
fi
fi
if
test
-e
"
$ref
"
;
then
if
test
-e
"
$ref
"
||
test
$cmp
=
"oneline"
;
then
case
$cmp
in
case
$cmp
in
diff
)
diff
-u
-w
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
diff
)
diff
-u
-w
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
oneoff
)
oneoff
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
oneoff
)
oneoff
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
stddev
)
stddev
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
stddev
)
stddev
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
oneline
)
oneline
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
null
)
cat
"
$outfile
"
>
$cmpfile
;;
null
)
cat
"
$outfile
"
>
$cmpfile
;;
esac
esac
cmperr
=
$?
cmperr
=
$?
...
...
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