Commit Graph

18 Commits

Author SHA1 Message Date
Martijn van Beurden de8bbb0d5b
Update copyright to 2024 (#722) 2024-07-11 15:35:32 +02:00
Sam James ef1e185e2c
test: stop using which (#709)
`which` is an external command which isn't required by POSIX.

Debian and other distributions (like Gentoo!) are looking
to drop it from their base set of packages.

Switch to `command -v` which is, however, POSIX. See https://lwn.net/Articles/874049/.
2024-06-19 11:36:29 +02:00
Martijn van Beurden e00d9b881f
Update copyright year and maintainer status 2023-06-06 22:08:24 +02:00
Martijn van Beurden 10d7ce268b Bulk update copyright dates to 2022 2022-07-26 16:23:07 +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
Erik de Castro Lopo 6b00dc26b2 Another bulk update of copyright dates 2016-12-05 19:07:13 +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 39d9791b03 More date fixes. 2014-11-25 20:02:22 +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 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
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 f2e10fa8ec test/test_compression.sh : Test compression level 0 as well. 2013-04-28 19:00:30 +10:00
Erik de Castro Lopo cd3162a2f6 test/test_compression.sh : Replace seq with numbers.
Apparently seq is a GNU program that isn't installed by default
on OpenBSD.
2013-03-09 19:40:19 +11:00
Erik de Castro Lopo 0432b96490 test/test_compression.sh : Use wc instead of stat to get file size.
The stat program has different command line parameters depend on
whether its the GNU or BSD version. Sitch to 'wc -c' instead which
seems more portable.
Plus other minor improvements.
2013-03-04 21:24:58 +11: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 1f0daccf2b Add a regresion test for compression levels. 2012-10-14 21:40:40 +11:00