From 83d7dbb393a134dc8938954595ba250d9431e4b4 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Sat, 16 Jan 2016 21:24:19 +0100 Subject: [PATCH] benchmark: improve script Use a temp file for the log and fix one env-var. --- tests/benchmarks/tracing.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/benchmarks/tracing.sh b/tests/benchmarks/tracing.sh index 1717c591df..47aad2e0af 100755 --- a/tests/benchmarks/tracing.sh +++ b/tests/benchmarks/tracing.sh @@ -20,12 +20,14 @@ fi echo "testing $tracer on $file" cat $file >/dev/null +log=`mktemp` + function test() { - GST_DEBUG_FILE=trace.log /usr/bin/gst-launch-1.0 playbin uri=file://$file audio-sink="fakesink sync=false" video-sink="fakesink sync=false" | grep "Execution ended after" | sed 's/Execution ended after//' + GST_DEBUG_FILE="$log" /usr/bin/gst-launch-1.0 playbin uri=file://$file audio-sink="fakesink sync=false" video-sink="fakesink sync=false" | grep "Execution ended after" | sed 's/Execution ended after//' } echo "$tracer" -GST_DEBUG="GST_TRACER:7" GST_TRACE="$tracer" test +GST_DEBUG="GST_TRACER:7" GST_TRACER_PLUGINS="$tracer" test GST_DEBUG= echo "no-log" @@ -35,3 +37,4 @@ GST_TRACER_PLUGINS= echo "reference" test +rm "$log"