Commit Graph

77 Commits

Author SHA1 Message Date
Martijn van Beurden de8bbb0d5b
Update copyright to 2024 (#722) 2024-07-11 15:35:32 +02:00
Martijn van Beurden cb190cc0a8 Add multithreading to tests 2023-09-22 21:10:15 +02:00
Martijn van Beurden e00d9b881f
Update copyright year and maintainer status 2023-06-06 22:08:24 +02:00
Martijn van Beurden 35306a812b
Introduce subdivide_tukey apodization
Subdivide_tukey is intended to replace partial_tukey and
punchout_tukey. It works in rougly the same way, but uses a more
efficient algorithm, recyling more data.

subdivide_tukey has 2 arguments, of which 1 is optional. The
first states the maximum number of parts the signal has to be
split up in, the second is the tukey parameter, divided by the
max num of parts.

subdivide_tukey(3) analyses audio with an unsplit block, with the
block split in 2 and split in 3. Here the default p of 0.5 applies
to the smallest parts, so the unsplit block effectively has a p of
0.5/3. subdivide_tukey(3/2e-1) does the same but with p of 0.2.
2022-08-19 20:56:24 +02:00
Martijn van Beurden 10d7ce268b Bulk update copyright dates to 2022 2022-07-26 16:23:07 +02:00
Martijn van Beurden a15ae334c9 Add 32-bit files to test 2022-06-12 18:38:21 +02:00
Rosen Penev 2b4ba6013e
tests: Run through shellcheck (#134)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-05-18 21:27:19 +02:00
Martijn van Beurden 1793632ee6
Rework error handling (#283)
This commit reworks the code decoding a frame, to add silence when
frames are missing and output silence when something other than the
frame header seems corrupted. Tests are added to the test suite for
this functionality. Also, decoded values are checked to be within bps
2022-04-27 12:16:15 +02:00
Erik de Castro Lopo 6a5fe43b7e Bulk update copyright dates 2016-12-05 06:35:39 +11:00
Erik de Castro Lopo efaab3c822 test/ : Use more portable echo constructs
Fix suggested by Daniel Macks.

Closes: https://sourceforge.net/p/flac/bugs/433/
2015-10-04 09:43:38 +11:00
Erik de Castro Lopo bb6f643fdc test_streams.sh: Improve error message 2015-09-07 14:49:55 +10:00
Erik de Castro Lopo 1a7c3fa488 tests/*.sh : Switch back to /bin/sh.
Jan Stary reported that on OpenBSD bash isn't located in /bin/
which means that the test fail. He also noted that there didn't
seem to be anything bash specific in the tests.

This patch takes some suggestions from Jan, plus a few fixes tested
on Debian using the bin/sh provided by bash and dash.

Suggested-by: Jan Stary <hans@stare.cz>
2014-11-27 13:12:17 +11:00
Erik de Castro Lopo 1437391577 Update copyright years to include 2014. 2014-11-25 13:04:30 +11:00
Erik de Castro Lopo a9712a2279 Factor out common test functionality to test/common.sh.in. 2013-09-17 06:14:57 +10:00
Erik de Castro Lopo 1d3d50a918 Switch test scripts to bash. 2013-09-17 06:14:54 +10:00
Erik de Castro Lopo d06d985487 test/ : Use new --no-error-on-compression-fail option as needed. 2013-08-01 23:02:26 +10:00
Ulrich Klauer cd4ddabe0f Language fix: "difference licenses"
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-27 18:08:57 +10:00
Erik de Castro Lopo b1982fbc5f Set version to 1.3.0 and update coyprights throughout. 2013-05-26 19:17:53 +10:00
Martijn van Beurden f6585b0bdc Reduce valgrind num-callers to 50
My Valgrind doesn't run, saying it doesn't support showing more
than 50 entries of a stack trace

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-22 17:43:01 +10:00
Erik de Castro Lopo 85d5c53803 Fix all Makefile.lite to use /objs/ directory instead of /obj/ directory. 2013-01-02 22:49:37 +11:00
Erik de Castro Lopo c5c4ce918f Tweak MALLOC_PERTURB_ expression in tests. 2012-04-19 06:31:11 +10:00
Cristian Rodríguez 95f0f75477 export MALLOC_PERTURB_ and MALLOC_CHECK_ in test suite
That enables an special implementation that checks
for common memory errors and will save us from a lot pain.
2012-04-19 04:54:01 +10:00
Josh Coalson dea0f5a044 add 2009 copyright 2009-01-07 07:31:28 +00:00
Josh Coalson 82b128050e update copyright for 2008 2008-02-28 05:34:21 +00:00
Josh Coalson 89f01a8019 switch from --logfile-fd= to --log-fd= to match newer valgrind options 2007-06-20 01:26:29 +00:00
Josh Coalson e74bd9516c add 2007 copyright 2007-02-02 06:58:19 +00:00
Josh Coalson 574dc9c23e more test variations on fsd streams 2007-01-19 05:33:30 +00:00
Josh Coalson 338a0b13d2 add logging of command to valgrind log 2006-11-20 05:39:34 +00:00
Josh Coalson 5ebd693265 encode with --no-padding where possible to speed up test 2006-11-17 06:03:18 +00:00
Josh Coalson 4ac9fdbcda default to FLAC__TEST_LEVEL=1 2006-11-02 01:38:55 +00:00
Josh Coalson d0edb97a46 limit subset further if sample rate is <=48kHz: max blocksize is 4608 and max LPC order is 12 2006-10-07 06:50:08 +00:00
Josh Coalson de9091e4a7 add configure options --disable-thorough-tests which breaks up testing into 3 levels: 0 for basic testing, 1 for thorough testing, 2 for exhaustive testing 2006-05-25 02:48:22 +00:00
Josh Coalson 0395dac13f add 2206 to copyright notice 2006-04-25 06:59:33 +00:00
Josh Coalson 439367cbe9 fix endian-ness on sine wave tests 2005-02-03 04:20:16 +00:00
Josh Coalson a78fac662c add 2005 to copyright notices 2005-01-25 04:17:55 +00:00
Josh Coalson b43d3cbd9e fix PATH and LD_LIBRARY_PATH settings, pass build type as first arg to test scripts 2004-11-09 01:28:05 +00:00
Josh Coalson ba56c9e31a add --force to run_flac invocations 2004-07-17 00:22:39 +00:00
Josh Coalson 9564390fb9 update copyright to 2004 2004-01-17 04:14:43 +00:00
Josh Coalson e8a7601a4b change license verbiage 2003-02-07 00:14:32 +00:00
Josh Coalson ecf57b7514 minor syntax 2003-01-14 09:00:25 +00:00
Josh Coalson afae69f0e3 Add 2003 to copyright notice 2003-01-02 07:03:16 +00:00
Josh Coalson 80936c5ba1 make valgrind output go into test-specific log file instead of one massive valgrind.log 2002-12-30 23:31:47 +00:00
Josh Coalson af3145ebba tweak Valgrind invocation to show more callers 2002-12-27 21:07:20 +00:00
Josh Coalson 6218b344f7 clean up code by emulating perl's 'die' command 2002-12-12 03:58:18 +00:00
Josh Coalson d3fe72801a split off some tests to new test_flac.sh script 2002-12-10 06:42:15 +00:00
Josh Coalson 34c1ea8ca2 instrument for valgrind 2002-12-04 04:57:33 +00:00
Josh Coalson 48404ff9c3 split obj dir into separate release and debug dirs 2002-11-21 08:58:52 +00:00
Josh Coalson 94b22e05de extend tests with --disable-...-subframe loops; precursor to valgrind support 2002-10-11 06:22:30 +00:00
Josh Coalson e2281f3432 fix bug with missing --lax in some cases 2002-09-11 00:31:47 +00:00
Josh Coalson 07414eb2ce add test for --serial-number 2002-09-04 07:56:02 +00:00