sox_ng/test
2026-10-18 09:26:14 +02:00
..
bit-depth Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-293 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-297 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-298 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-305 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-320 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-327 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-331 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-333 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-334 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-345 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-350 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-351 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-358 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-360-aiffstartwrite Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-360-rate Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-363 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-367 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-368 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-369 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
BUG-370 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
chorus-glitch Make chorus-glitch test use a 16-bit test file not 32 2026-08-14 20:10:24 +02:00
convert-number-of-channels Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2004-0557 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2014-8145 Remove tempfile accidentally comitted 2024-08-21 08:26:55 +02:00
CVE-2017-11332 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-11333 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-11358 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-11359 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-15370 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-15371 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-15372 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-15642 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2017-18189 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2019-8354 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2019-8355 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2019-8356 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2019-8357 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2019-13590 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2019-1010004 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2021-3643 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2021-23159 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2021-23172 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2021-23210 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2021-33844 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2021-40426 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2022-31650 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2022-31651 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2023-26590 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2023-32627 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2023-34318 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
CVE-2023-34432 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
dither-guard-clip Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
ebu-r-128 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
echos Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
equiv-chorus-flanger Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
Fedora-1226675 Disable test Fedora-1226675 because it requires audio hardware 2024-08-18 12:29:33 +02:00
ffmpeg-command-execution Make wine-based tests work from "sh check.sh" in test/ 2026-08-13 13:04:32 +02:00
fmt-aifc-alaw-read Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
fmt-aifc-alaw-write Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
fmt-aifc-ulaw-read Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
fmt-aifc-ulaw-write Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
format-nsp Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
mix-50-50-c-1 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
mix-50-50-combine-mix Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
mix-50-50-remix Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
mix-50-50-synth-mix Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
mix-50-50-synth-vdelay Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
noop-synth-vdelay Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
o2.voc Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
PATCH-126 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
PATCH-127 Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
playlist-with-pipe Make wine-based tests work from "sh check.sh" in test/ 2026-08-13 13:04:32 +02:00
sinc-invalid-option Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
sinc-usage Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
spectrogram_-x Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
synth-amod-fmod Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
txw-wav-byte-rate Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
url-command-injection Add test for shell special characters in URL 2026-08-11 13:36:04 +02:00
wav-length-over-4GB Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
wav-truncated-ISFT Fix 282351e to ignore final ISFT/ICRD chunk with length > EOF 2026-05-18 12:06:49 +02:00
wavpack-errors Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
win-utf8-globbing Disable win-utf8-globbing test, failing for wine-related issues 2026-10-18 09:26:14 +02:00
.gitignore Rationalize .gitignores 2025-02-07 11:04:57 +01:00
check.sh Only run tests whose "run" script is executable 2026-10-18 09:25:45 +02:00
Makefile.am test/Makefile.am: Use $(EXEEXT), not $(EXE) 2025-11-19 01:43:16 +01:00
README Document exit codes of "run" scripts 2025-02-04 12:38:52 +01:00
run Make test/run executable 2026-05-18 11:55:33 +02:00
samples.c dat: Align figures, remove useless spaces and precision and drop \r on Unix 2025-03-06 14:23:31 +01:00

Yet another test suite for SoX
------------------------------

There are already several test suites in sox's source directory
as well as a test/ directory (which doesn't seem to work).

This one is a regression test suite, most of which test CVE's against
crafted audio files, each with its files in its own directory in which
there is a shell script "run" that exits
    0 if the test succeeded,
    2 if the test failed or SoX threw an unexpected error,
    254 if the build of SoX does not include the feature under test, or
other exit codes pinpoint causes of failure - see check.sh

To run all the tests:

    sh check.sh

or to run an individual test:

    cd CVE-2004-0557
    sh run

You can also test a different executable than the installed "sox" by saying:

    sox=/usr/local/src/sox-14.4.2/src/sox sh check.sh
or
    sox=sox_ng sh run

but relative paths will only work properly with "sh run" as check.sh
cd's into the various directories before running "run" in each one.

If you get unrecognised exit statuses on funny systems, do write.

    Martin Guy <martinwguy@gmail.com>, July 2024.