| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# Need the packages mktemp, debconf and pysycache-i18n, the latter two |
| 4 |
# for an example image and ogg sound. |
| 5 |
|
| 6 |
set -e |
| 7 |
at_exit() { |
| 8 |
set +x |
| 9 |
echo "info: test exiting, removing $WORKDIR" |
| 10 |
rm -rf $WORKDIR |
| 11 |
} |
| 12 |
WORKDIR=$(mktemp -d) |
| 13 |
trap at_exit INT TERM EXIT |
| 14 |
set -x |
| 15 |
|
| 16 |
cd $WORKDIR |
| 17 |
|
| 18 |
if type valgrind >/dev/null 2>&1 ; then |
| 19 |
VALGRIND=valgrind |
| 20 |
fi |
| 21 |
|
| 22 |
echo "info: Running autopkgtest script $0" |
| 23 |
|
| 24 |
echo "info: Generating Ogg Theora file" |
| 25 |
${VALGRIND} ${TESTBINDIR}oggSlideshow /usr/share/pixmaps/debian-logo.png |
| 26 |
|
| 27 |
# Join it. |
| 28 |
echo "info: Copy Ogg Theora file using oggJoin." |
| 29 |
${VALGRIND} ${TESTBINDIR}oggJoin out.ogv slideshow.ogv |
| 30 |
|
| 31 |
# This should trigger the bug reported in bug #606224, which need an |
| 32 |
# audio file. |
| 33 |
echo "info: Copy Ogg Vorbis file using oggJoin." |
| 34 |
${VALGRIND} ${TESTBINDIR}oggJoin out.ogv /usr/share/games/pysycache/lang/en_EN/menu9.ogg |
| 35 |
|
| 36 |
if [ -e out.ogv ] ; then |
| 37 |
echo "success: Ogg Theora file out.ogv created." |
| 38 |
else |
| 39 |
echo "error: No Ogg Theora file created by oggJoin." |
| 40 |
exit 1 |
| 41 |
fi |
| 42 |
|
| 43 |
echo "info: test completed successfully" |