mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
test 2
This commit is contained in:
@@ -24,6 +24,9 @@ PATH=`pwd`/../src/flac:$PATH
|
|||||||
PATH=`pwd`/../src/metaflac:$PATH
|
PATH=`pwd`/../src/metaflac:$PATH
|
||||||
PATH=`pwd`/../objs/$BUILD/bin:$PATH
|
PATH=`pwd`/../objs/$BUILD/bin:$PATH
|
||||||
|
|
||||||
|
echo "Erik was here!"
|
||||||
|
which metaflac
|
||||||
|
|
||||||
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
||||||
then EGREP='grep -E'
|
then EGREP='grep -E'
|
||||||
else EGREP='egrep'
|
else EGREP='egrep'
|
||||||
@@ -108,7 +111,8 @@ metaflac_test ()
|
|||||||
run_metaflac $args $flacfile | filter > $testdir/out1.meta || die "ERROR running metaflac"
|
run_metaflac $args $flacfile | filter > $testdir/out1.meta || die "ERROR running metaflac"
|
||||||
# Ignore lengths which can be affected by the version string.
|
# Ignore lengths which can be affected by the version string.
|
||||||
sed "s/length:.*/length: XXX/" $testdir/out1.meta > $testdir/out.meta
|
sed "s/length:.*/length: XXX/" $testdir/out1.meta > $testdir/out.meta
|
||||||
diff -w $expect $testdir/out.meta || die "ERROR: metadata does not match expected $expect"
|
echo "diff -u $expect $testdir/out.meta"
|
||||||
|
diff -u $expect $testdir/out.meta || die "ERROR: metadata does not match expected $expect"
|
||||||
# To blindly accept (and check later): cp -f $testdir/out.meta $expect
|
# To blindly accept (and check later): cp -f $testdir/out.meta $expect
|
||||||
echo OK
|
echo OK
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user