Commit Graph

266 Commits

Author SHA1 Message Date
Martijn van Beurden 7385dac383
Fix overflow of streaminfo total samples (github issue 237)
When writing a FLAC file with over 2^36 samples, the total samples
entry in streaminfo will overflow and wrap around. Setting it to 0
(which means unknown number of samples) makes sure the decoder
doesn't rely on this number

Co-authored-by: Ralph Giles <giles@thaumas.net>
2022-04-19 17:45:22 +02:00
Martijn van Beurden ce31a1d51f [CMake] Enable testing through busybox
With this commit, it is possible to run the full test suite on
Windows machines when busybox-w32 is installed. This program is
available through chocolatey with 'choco install busybox'

CMake tests for availability of busybox and use if available. As
chocolatey is the preferred method of fetching software for
Github actions, this commit paves the way for running the full
test suite on Windows for CI
2022-04-13 17:37:50 +02:00
Silent 179cdce1db cmake: Fix tests with BUILD_CXXLIBS or BUILD_PROGRAMS off
Fixes a regression introduced in 10797d5896
2022-04-13 07:35:33 +02:00
Ralph Giles 22816c6c1b
Set release date for 1.3.4.
This is a target date, but it's a nice round number if we're able
to make it work.

Signed-off-by: Ralph Giles <giles@thaumas.net>
2022-02-20 20:54:20 -08:00
Martijn van Beurden e75495be3d
Change version to 1.3.4 and add placeholders for release date
Signed-off-by: Ralph Giles <giles@thaumas.net>
2022-02-20 20:54:19 -08:00
Ralph Giles 10797d5896 cmake: add some simple tests on windows platforms.
The main test harnesses are written in unix shell script, so
they don't work on windows. A stanza was added to the cmake
config to skip all tests there to get a green build.

This is misleading, since no testing was done at all on Windows.

Instead, construct a separate set of tests on non-unix platforms,
calling the two api test programs, which of necessity are
compiled executables. Also invoke the two front-end programs
with just the --help switch to verify they at least start.

Thanks to Marcus Asteborg for the suggestion.
2021-07-11 13:53:07 -07:00
Erik de Castro Lopo 6d0e222a6e Make sure CMake build files end up in release tarball 2019-10-01 08:18:28 +10:00
Erik de Castro Lopo f764434a39 Version 1.3.3 2019-08-04 19:47:53 +10:00
Erik de Castro Lopo 1146117229 test: Ignore varying length in metadata
The metadata test checked for specific lengths which change from 5 bytes for
something like "1.3.2" to 9 bytes for something like "1.3.3pre1".
2019-07-15 09:42:38 +10:00
Vitaliy Kirsanov 0c3440aec0 Fixed #107: CMake error without enabling BUILD_CXXLIBS 2019-05-31 19:19:20 +10:00
Vitaliy Kirsanov b967ef060e Added ECHO_C to CMake tests 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov 5435f15be4 /test/*.sh enabled for CTest in UNIX 2019-05-04 11:41:48 +10:00
orbea 452a447778 Add output-prefix tests
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-06-11 09:57:21 +10:00
luz.paz 01eb19708c Fix miscellaneous typos.
Found via `codespell -q 3`
2018-05-24 07:20:19 +10:00
Erik de Castro Lopo bb75073428 flac: Use WAVEFORMATEXTENSIBLE when bps != (8|16)
When decoding to WAV, the legacy wFormatTag of WAVE_FORMAT_PCM should
only be used if the bitwidth is 8 or 16. For all other bitwidths,
use WAVEFORMATEXTENSIBLE.

Two of the test programs/scripts also needed updating.
2017-05-27 17:22:19 +10:00
Erik de Castro Lopo ac39d3719f Version 1.3.2 2017-01-01 14:54:28 +11:00
Erik de Castro Lopo 1366367d1f test/test_metaflac.sh: Comment only 2017-01-01 11:52:04 +11:00
Erik de Castro Lopo e64ac79798 Makefile.lite: Fix running of tests
* Generate `test/common.sh` from `test/common.sh.in`.
* Move `is_win` setting to `test_common.sh`.
2016-12-21 20:49:52 +11:00
Erik de Castro Lopo 6b00dc26b2 Another bulk update of copyright dates 2016-12-05 19:07:13 +11:00
Erik de Castro Lopo 6a5fe43b7e Bulk update copyright dates 2016-12-05 06:35:39 +11:00
Erik de Castro Lopo 0b9bcebd78 test/Makefile.lite: Remove call to old script 2016-05-13 06:50:49 +10:00
Erik de Castro Lopo cf0a6ec709 Fix 'make distcheck' target
Last commit added a new file which was not added to `EXTRA_DIST`.
2016-04-27 10:23:38 +10:00
Erik de Castro Lopo 3de7413a36 cuesheet.c: Allow quotes around ISRC field
With this change, flac now accepts cuesheets where the ISRC field is
enclosed in double quotes. Added a test for this as well.

Closes: https://sourceforge.net/p/flac/bugs/436/
2016-04-26 18:06:16 +10:00
Erik de Castro Lopo 1531034202 test/: Remove two redundant scripts
* test_bin.sh looks like it was a personal use script for the original
  developer Josh Coalson and referenced directories outside the actual
  repository.
* test_wrapper.sh was trivial and un-used.
2016-02-11 09:37:20 +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 084bb72f78 test_flac.sh: Test unsigned as well as signed 2015-09-07 15:21:47 +10:00
Erik de Castro Lopo bb6f643fdc test_streams.sh: Improve error message 2015-09-07 14:49:55 +10:00
Ben Boeckel f7c52c8aa8 metaflac: add --scan-replay-gain option
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2015-08-14 06:21:26 +10:00
Erik de Castro Lopo 1ddeb2640e test/test_flac.sh : Make it work for 'make distcheck'.
An output file was being set to read only and hence could not be
overwritten by a later test. Not sure why this only affected the
'make distcheck' target.
2015-02-24 18:32:07 +11:00
Erik de Castro Lopo 29db3fbf1c Fix cursheet tests for 'make distcheck'. 2015-02-24 06:06:10 +11:00
Erik de Castro Lopo ed22a42bbe test/test_metaflac.sh : Out-of-tree build fixes. 2015-02-15 20:37:40 +11:00
Erik de Castro Lopo d8036ea9d6 test/test_flac.sh : Out-of-tree build fixes. 2015-02-15 20:37:40 +11:00
Erik de Castro Lopo 7c3cd3d908 Update grabbag tests to work out-of-tree. 2015-02-15 20:37:40 +11:00
Erik de Castro Lopo bb2abeaf10 test/test_flac.sh : Silence increased encoding size warnings.
These warning are supposed to occur for files with noise-like
characteristics and some of the tests use files containing noise.
2015-02-15 16:48:46 +11:00
Erik de Castro Lopo bd51618152 test/Makefile.am : Collapse 'fullcheck' into 'check' target. 2015-02-15 16:48:46 +11:00
Erik de Castro Lopo 757ae56140 test/common.sh.in : Add top_builddir and top_srcdir variables.
These are needed for running some of the tests when building out
of tree.
2015-02-15 16:48:46 +11:00
Erik de Castro Lopo b903670f21 replaygain test: Use C code to generate test files. 2015-02-15 16:48:46 +11:00
Erik de Castro Lopo 7ef7b58f04 test/test_replaygain.sh : Minor cleanup.
* Pipe un-needed strerr output to /dev/null.
* Pass --silent and --no-seektable to the flac executable.
* When generating tones, use --output-name=....
2015-02-13 09:30:39 +11:00
Karthik Periagaram bc97640b65 Grammatical error in make file comment fixed
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2014-12-14 18:00:05 +11:00
Erik de Castro Lopo 0e11f73eab Version 1.3.1 final. 2014-11-27 14:04:48 +11: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 b147b73eab test/test_compression.sh : Fix for OSX.
On Mac OSX, the 'wc -c' command returns a number with leading whitespace
which then results in a syntax error when the shell parser expects a
number when it really has a string containing a number. The easy fix is
to use string interpolation.

Closes: https://sourceforge.net/p/flac/bugs/420/
Reported-by: Mark Harris <mark.hsj@gmail.com>
2014-11-26 16:29:29 +11:00
Erik de Castro Lopo ccdd8fe275 libFLAC/format.c : Fix the date in FLAC__VENDOR_STRING. 2014-11-26 08:03:34 +11:00
Erik de Castro Lopo 39d9791b03 More date fixes. 2014-11-25 20:02:22 +11:00
Erik de Castro Lopo b83ee75363 Set version to 1.3.1pre1. 2014-11-25 19:10:31 +11:00
Erik de Castro Lopo 1437391577 Update copyright years to include 2014. 2014-11-25 13:04:30 +11:00
Martijn van Beurden 3d800a5775 Make test_compression a little more forgiving
The retune of compression levels makes this test fail. This is due
to a few approximations used in the encoder that determine which
LP coefficient should result in the smallest file. Differences are
usually very small, but in my case this resulted in compression
level 6 giving a 3 byte bigger file.

This patch lets the compression test pass even if the a compression
level results in a file that is up to 10 byte larger than the
previous level

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2014-11-11 06:20:08 -08:00
Erik de Castro Lopo 879a0ce2a5 test/test_flac.sh : Add --force-raw-format as needed.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-07-13 20:38:59 +10:00
Erik de Castro Lopo 1988855b82 test_replaygain.sh : Add --force-raw-format option.
This test was failing due to the lack of this option.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-07-08 21:12:18 +10:00
Erik de Castro Lopo 4bc4255f6c test/test_replaygain.sh : Update tests after work aroind for GCC bug.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-06-28 09:20:03 +10:00