mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-11 22:27:42 +02:00
Add helper functions "import_from_aud" and "export_to_aud" to de-deplicate common code in tests. The export functions reads back the exported signal to remove the impact of quantization errors during wav export from test results. Signed-off-by: Max Maisel <max.maisel@posteo.de>
Unit tests for Audacity effects
These unit tests check the correctness of Audacity's effect calculations against GNU octave. Therefore some simple deterministic and random sample data is generated and passed to Audacity via mod-script-pipe.
To run a test, run: (replace <desired_test.m>
with the correct filename)
./run_test.m <desired_test.m>
The tests will print the results to the terminal and will return 0 on success and non-zero on error.
To run those tests you need a Linux system with GNU Octave, octave-forge-signal and Audacity mod-script-pipe installed.