From 364d9e60e3c27cb131a598fe5f83deb74493319f Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 27 Jan 2026 22:26:27 +0100 Subject: test(spectool): Add end-to-end test for analysis tool Adds a new CTest unit test that performs a full, end-to-end verification of the 'spectool analyze' command. The test programmatically generates a sine wave, saves it as a .wav file, executes the spectool executable as a subprocess to analyze the wave, and then verifies the integrity of the resulting .spec file. This ensures the analysis pipeline (WAV decoding, windowing, FDCT, and file I/O) works correctly. --- HOWTO.md | 1 + 1 file changed, 1 insertion(+) (limited to 'HOWTO.md') diff --git a/HOWTO.md b/HOWTO.md index 6a4d723..d948e59 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -30,6 +30,7 @@ To build and run the tests, you need to enable the `DEMO_BUILD_TESTS` option in Available test suites: * `HammingWindowTest`: Verifies the properties of the Hamming window function. * `SynthEngineTest`: Verifies the core functionality of the audio synthesizer. +* `SpectoolEndToEndTest`: Performs an end-to-end test of the `spectool` by generating a WAV file, analyzing it, and verifying the output. ```bash cmake -S . -B build -DDEMO_BUILD_TESTS=ON -- cgit v1.2.3