Ticket #2432: run.sh

File run.sh, 574 bytes (added by wififreedom, 5 weeks ago)

script to run mplayer with valgrind, using input generated by subtest.c

Line 
1#!/bin/sh
2
3set -euo pipefail
4
5set -x
6
7# To:
8# - build with debug info for stack traces and analysis
9# - work around valgrind not supporting avx512, causing an illegal instruction report:
10# configure mplayer as follows:
11# ./configure --enable-debug=3 --extra-cflags=-mno-avx512f
12
13gcc subtest.c -o subtest
14
15./subtest sub
16
17ffmpeg -y -f lavfi -i color=size=2x2:rate=25:color=black -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -t 1 subtest.mp4
18
19for i in $(seq 0 92); do
20 valgrind ~/repos/svn/mplayer/mplayer -vo jpeg -vobsub sub-$i -vobsubid 0 subtest.mp4
21done
22