mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Add more RF64 tests.
This commit is contained in:
parent
57525e4ef5
commit
7f51dea38e
@ -1,3 +1,9 @@
|
||||
2008-08-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* tests/Makefile.am tests/write_read_test.tpl tests/header_test.tpl
|
||||
tests/misc_test.c
|
||||
Add tests for RF64.
|
||||
|
||||
2008-08-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/rf64.c
|
||||
|
@ -187,9 +187,9 @@ endif
|
||||
#===============================================================================
|
||||
|
||||
check: generic-tests wav-tests aiff-tests au-tests caf-tests raw-tests \
|
||||
paf-tests svx-tests nist-tests ircam-tests voc-tests w64-tests mat4-tests \
|
||||
mat5-tests pvf-tests xi-tests htk-tests avr-tests sds-tests sd2-tests \
|
||||
flac-tests caf-tests wve-tests vorbis-tests mpc2k-tests io-tests
|
||||
paf-tests svx-tests nist-tests ircam-tests voc-tests w64-tests rf64-tests \
|
||||
mat4-tests mat5-tests pvf-tests xi-tests htk-tests avr-tests sds-tests \
|
||||
sd2-tests flac-tests caf-tests wve-tests vorbis-tests mpc2k-tests io-tests
|
||||
|
||||
generic-tests : error_test ulaw_test alaw_test command_test floating_point_test \
|
||||
pcm_test win32_ordinal_test external_libs_test $(CPP_TEST)
|
||||
@ -241,6 +241,27 @@ wav-tests: write_read_test lossy_comp_test peak_chunk_test header_test misc_test
|
||||
@echo " `./sfversion` passed tests on WAV files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
w64-tests: write_read_test lossy_comp_test misc_test
|
||||
./write_read_test w64
|
||||
./lossy_comp_test w64_ima
|
||||
./lossy_comp_test w64_msadpcm
|
||||
./lossy_comp_test w64_ulaw
|
||||
./lossy_comp_test w64_alaw
|
||||
./lossy_comp_test w64_gsm610
|
||||
./header_test w64
|
||||
./misc_test w64
|
||||
@echo "----------------------------------------------------------------------"
|
||||
@echo " `./sfversion` passed tests on W64 files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
rf64-tests: write_read_test misc_test
|
||||
./write_read_test rf64
|
||||
./header_test rf64
|
||||
./misc_test rf64
|
||||
@echo "----------------------------------------------------------------------"
|
||||
@echo " `./sfversion` passed tests on RF64 files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
aiff-tests: write_read_test lossy_comp_test peak_chunk_test header_test misc_test aiff_rw_test
|
||||
./write_read_test aiff
|
||||
./lossy_comp_test aiff_ulaw
|
||||
@ -293,35 +314,12 @@ raw-tests: write_read_test lossy_comp_test raw_test
|
||||
@echo " `./sfversion` passed tests on RAW (header-less) files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
w64-tests: write_read_test lossy_comp_test misc_test
|
||||
./write_read_test w64
|
||||
./lossy_comp_test w64_ima
|
||||
./lossy_comp_test w64_msadpcm
|
||||
./lossy_comp_test w64_ulaw
|
||||
./lossy_comp_test w64_alaw
|
||||
./lossy_comp_test w64_gsm610
|
||||
./header_test w64
|
||||
./misc_test w64
|
||||
@echo "----------------------------------------------------------------------"
|
||||
@echo " `./sfversion` passed tests on W64 files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
wve-tests: lossy_comp_test
|
||||
./lossy_comp_test wve
|
||||
@echo "----------------------------------------------------------------------"
|
||||
@echo " `./sfversion` passed tests on WVE files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
vorbis-tests: lossy_comp_test ogg_test vorbis_test
|
||||
./ogg_test
|
||||
./vorbis_test
|
||||
./lossy_comp_test ogg_vorbis
|
||||
./string_test ogg
|
||||
./misc_test ogg
|
||||
@echo "----------------------------------------------------------------------"
|
||||
@echo " `./sfversion` passed tests on OGG/VORBIS files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
# Lite remove start
|
||||
paf-tests: write_read_test misc_test
|
||||
./write_read_test paf
|
||||
@ -444,6 +442,16 @@ mpc2k-tests: write_read_test misc_test
|
||||
@echo " `./sfversion` passed tests on MPC 2000 files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
vorbis-tests: lossy_comp_test ogg_test vorbis_test
|
||||
./ogg_test
|
||||
./vorbis_test
|
||||
./lossy_comp_test ogg_vorbis
|
||||
./string_test ogg
|
||||
./misc_test ogg
|
||||
@echo "----------------------------------------------------------------------"
|
||||
@echo " `./sfversion` passed tests on OGG/VORBIS files."
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
||||
# Lite remove end
|
||||
|
||||
io-tests: stdio_test stdin_test stdout_test pipe_test
|
||||
|
@ -156,6 +156,15 @@ main (int argc, char *argv [])
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "rf64"))
|
||||
{ update_header_test ("header.rf64", SF_FORMAT_RF64) ;
|
||||
update_seek_short_test ("header_short.rf64", SF_FORMAT_RF64) ;
|
||||
update_seek_int_test ("header_int.rf64", SF_FORMAT_RF64) ;
|
||||
update_seek_float_test ("header_float.rf64", SF_FORMAT_RF64) ;
|
||||
update_seek_double_test ("header_double.rf64", SF_FORMAT_RF64) ;
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "mat4"))
|
||||
{ update_header_test ("header.mat4", SF_FORMAT_MAT4) ;
|
||||
update_seek_short_test ("header_short.mat4", SF_FORMAT_MAT4) ;
|
||||
|
@ -138,6 +138,13 @@ main (int argc, char *argv [])
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "rf64"))
|
||||
{ zero_data_test ("zerolen.rf64", SF_FORMAT_W64 | SF_FORMAT_PCM_16) ;
|
||||
filesystem_full_test (SF_FORMAT_W64 | SF_FORMAT_PCM_16) ;
|
||||
permission_test ("readonly.rf64", SF_FORMAT_W64) ;
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "mat4"))
|
||||
{ zero_data_test ("zerolen.mat4", SF_FORMAT_MAT4 | SF_FORMAT_PCM_16) ;
|
||||
filesystem_full_test (SF_FORMAT_MAT4 | SF_FORMAT_PCM_16) ;
|
||||
|
Loading…
Reference in New Issue
Block a user