mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add some tests for cuesheet importing/exporting
This commit is contained in:
@@ -59,5 +59,7 @@ CLEANFILES = \
|
||||
$(wildcard ../../test_files/bins/*.raw) \
|
||||
$(wildcard ../../test_files/bins/*.flac) \
|
||||
$(wildcard ../../test_files/bins/*.cmp) \
|
||||
$(wildcard *.diff)
|
||||
$(wildcard *.log)
|
||||
$(wildcard *.diff) \
|
||||
$(wildcard *.log) \
|
||||
$(wildcard *.cue) \
|
||||
core
|
||||
|
||||
@@ -36,4 +36,4 @@ debug: all
|
||||
release: all
|
||||
|
||||
clean:
|
||||
rm -f *.raw *.flac *.ogg *.cmp *.wav ../../test_files/bins/*.raw ../../test_files/bins/*.flac ../../test_files/bins/*.cmp *.diff *.log core
|
||||
rm -f *.raw *.flac *.ogg *.cmp *.wav ../../test_files/bins/*.raw ../../test_files/bins/*.flac ../../test_files/bins/*.cmp *.diff *.log *.cue core
|
||||
|
||||
@@ -275,4 +275,29 @@ check_exit
|
||||
|
||||
rm vc.txt
|
||||
|
||||
cs_in=cuesheets/good.000.cue
|
||||
cs_out=metaflac.cue
|
||||
cs_out2=metaflac2.cue
|
||||
(set -x && $METAFLAC --import-cuesheet-from="$cs_in" $flacfile)
|
||||
check_exit
|
||||
check_flac
|
||||
(set -x && $METAFLAC --export-cuesheet-to=$cs_out $flacfile)
|
||||
check_exit
|
||||
(set -x && $METAFLAC --remove --block-type=CUESHEET $flacfile)
|
||||
check_exit
|
||||
check_flac
|
||||
(set -x && $METAFLAC --import-cuesheet-from=$cs_out $flacfile)
|
||||
check_exit
|
||||
check_flac
|
||||
(set -x && $METAFLAC --export-cuesheet-to=$cs_out2 $flacfile)
|
||||
check_exit
|
||||
echo "comparing cuesheets:"
|
||||
if diff $cs_out $cs_out2 ; then : ; else
|
||||
echo "ERROR, cuesheets should be identical"
|
||||
exit 1
|
||||
fi
|
||||
echo identical
|
||||
|
||||
rm -f $cs_out $cs_out2
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user