mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add logging of command to valgrind log
This commit is contained in:
@@ -50,6 +50,7 @@ flac --help 1>/dev/null 2>/dev/null || die "ERROR can't find flac executable"
|
|||||||
run_flac ()
|
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=100 flac $*" >>test_bins.valgrind.log
|
||||||
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_bins.valgrind.log
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_bins.valgrind.log
|
||||||
else
|
else
|
||||||
flac $*
|
flac $*
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ test_picture -h 1>/dev/null 2>/dev/null || die "ERROR can't find test_picture ex
|
|||||||
run_test_cuesheet ()
|
run_test_cuesheet ()
|
||||||
{
|
{
|
||||||
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=100 test_cuesheet $*" >>test_grabbag.valgrind.log
|
||||||
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 test_cuesheet $* 4>>test_grabbag.valgrind.log
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 test_cuesheet $* 4>>test_grabbag.valgrind.log
|
||||||
else
|
else
|
||||||
test_cuesheet $*
|
test_cuesheet $*
|
||||||
@@ -53,6 +54,7 @@ run_test_cuesheet ()
|
|||||||
run_test_picture ()
|
run_test_picture ()
|
||||||
{
|
{
|
||||||
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=100 test_picture $*" >>test_grabbag.valgrind.log
|
||||||
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 test_picture $* 4>>test_grabbag.valgrind.log
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 test_picture $* 4>>test_grabbag.valgrind.log
|
||||||
else
|
else
|
||||||
test_picture $*
|
test_picture $*
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ metaflac --help 1>/dev/null 2>/dev/null || die "ERROR can't find metaflac execut
|
|||||||
run_flac ()
|
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=100 flac $*" >>test_seeking.valgrind.log
|
||||||
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_seeking.valgrind.log
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_seeking.valgrind.log
|
||||||
else
|
else
|
||||||
flac $*
|
flac $*
|
||||||
@@ -53,6 +54,7 @@ run_flac ()
|
|||||||
run_metaflac ()
|
run_metaflac ()
|
||||||
{
|
{
|
||||||
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=100 metaflac $*" >>test_seeking.valgrind.log
|
||||||
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 4>>test_seeking.valgrind.log
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 4>>test_seeking.valgrind.log
|
||||||
else
|
else
|
||||||
metaflac $*
|
metaflac $*
|
||||||
@@ -62,6 +64,7 @@ run_metaflac ()
|
|||||||
run_test_seeking ()
|
run_test_seeking ()
|
||||||
{
|
{
|
||||||
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=100 test_seeking $*" >>test_seeking.valgrind.log
|
||||||
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 test_seeking $* 4>>test_seeking.valgrind.log
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 test_seeking $* 4>>test_seeking.valgrind.log
|
||||||
else
|
else
|
||||||
test_seeking $*
|
test_seeking $*
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ flac --help 1>/dev/null 2>/dev/null || die "ERROR can't find flac executable"
|
|||||||
run_flac ()
|
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=100 flac $*" >>test_streams.valgrind.log
|
||||||
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_streams.valgrind.log
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_streams.valgrind.log
|
||||||
else
|
else
|
||||||
flac $*
|
flac $*
|
||||||
|
|||||||
Reference in New Issue
Block a user