summaryrefslogtreecommitdiffstats
path: root/theora/test.sh
blob: b276c41fb8225cefc748fa68cfc363ab6a4763d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash -xe

w32="/usr/i686-w64-mingw32/sys-root/mingw/bin"
w64="/usr/x86_64-w64-mingw32/sys-root/mingw/bin"

if [ ! -d samples ]; then
	echo "samples directory doesn't exists"
	exit 1
fi

pushd samples

for sample in *.ogg *.ogv; do
	echo "$sample"

	theora_dump_video < $sample | md5sum

	export WINEPREFIX=$HOME/.wine32
	$w32/theora_dump_video.exe < $sample | md5sum

	export WINEPREFIX=$HOME/.wine64
	$w64/theora_dump_video.exe < $sample | md5sum

	echo
done

popd