Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
d06d9854
Commit
d06d9854
authored
Aug 01, 2013
by
Erik de Castro Lopo
Browse files
test/ : Use new --no-error-on-compression-fail option as needed.
parent
f742b93b
Changes
4
Hide whitespace changes
Inline
Side-by-side
test/test_flac.sh
View file @
d06d9854
...
@@ -65,9 +65,9 @@ run_flac ()
...
@@ -65,9 +65,9 @@ run_flac ()
{
{
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_flac.valgrind.log
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_flac.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
$*
4>>test_flac.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
--no-error-on-compression-fail
$*
4>>test_flac.valgrind.log
else
else
flac
$*
flac
--no-error-on-compression-fail
$*
fi
fi
}
}
...
...
test/test_metaflac.sh
View file @
d06d9854
...
@@ -68,9 +68,9 @@ run_flac ()
...
@@ -68,9 +68,9 @@ run_flac ()
{
{
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_metaflac.valgrind.log
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_metaflac.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
$*
4>>test_metaflac.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
--no-error-on-compression-fail
$*
4>>test_metaflac.valgrind.log
else
else
flac
$*
flac
--no-error-on-compression-fail
$*
fi
fi
}
}
...
@@ -433,7 +433,7 @@ tonegenerator ()
...
@@ -433,7 +433,7 @@ tonegenerator ()
}
}
}'
/dev/null |
}'
/dev/null |
flac
--silent
\
flac
--no-error-on-compression-fail
--silent
\
--endian
=
big
--channels
=
1
--bps
=
24
--sample-rate
=
$1
--sign
=
unsigned -
--endian
=
big
--channels
=
1
--bps
=
24
--sample-rate
=
$1
--sign
=
unsigned -
}
}
...
...
test/test_seeking.sh
View file @
d06d9854
...
@@ -24,7 +24,7 @@ die ()
...
@@ -24,7 +24,7 @@ die ()
exit
1
exit
1
}
}
if
[
x
=
x
"
$1
"
]
;
then
if
[
x
=
x
"
$1
"
]
;
then
BUILD
=
debug
BUILD
=
debug
else
else
BUILD
=
"
$1
"
BUILD
=
"
$1
"
...
@@ -52,9 +52,9 @@ run_flac ()
...
@@ -52,9 +52,9 @@ run_flac ()
{
{
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_seeking.valgrind.log
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_seeking.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
$*
4>>test_seeking.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
--no-error-on-compression-fail
$*
4>>test_seeking.valgrind.log
else
else
flac
$*
flac
--no-error-on-compression-fail
$*
fi
fi
}
}
...
...
test/test_streams.sh
View file @
d06d9854
...
@@ -24,7 +24,7 @@ die ()
...
@@ -24,7 +24,7 @@ die ()
exit
1
exit
1
}
}
if
[
x
=
x
"
$1
"
]
;
then
if
[
x
=
x
"
$1
"
]
;
then
BUILD
=
debug
BUILD
=
debug
else
else
BUILD
=
"
$1
"
BUILD
=
"
$1
"
...
@@ -48,9 +48,9 @@ run_flac ()
...
@@ -48,9 +48,9 @@ run_flac ()
{
{
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
if
[
x
"
$FLAC__TEST_WITH_VALGRIND
"
=
xyes
]
;
then
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_streams.valgrind.log
echo
"valgrind --leak-check=yes --show-reachable=yes --num-callers=50 flac
$*
"
>>
test_streams.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
$*
4>>test_streams.valgrind.log
valgrind
--leak-check
=
yes
--show-reachable
=
yes
--num-callers
=
50
--log-fd
=
4 flac
--no-error-on-compression-fail
$*
4>>test_streams.valgrind.log
else
else
flac
$*
flac
--no-error-on-compression-fail
$*
fi
fi
}
}
...
...
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