Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
blocks
composites
core
generate
types
README.md
buffer.lua
jigs.lua
namespace_spec.lua
top_spec.lua
top_vectors.lua

README.md

Testing

LuaRadio unit tests are run with busted:

busted --lua=luajit --lpath="./?/init.lua" --no-auto-insulate tests/

The unit tests can be run with various combinations of external libraries disabled, controlled by several environment variables. See the Reference Manual for more information.

For example, to run all unit tests with only pure Lua implementations and no external libraries:

LUARADIO_DISABLE_VOLK=1 LUARADIO_DISABLE_LIQUID=1 LUARADIO_DISABLE_FFTW3F=1 \
busted --lua=luajit --lpath="./?/init.lua" --no-auto-insulate tests/

Many block unit tests are code generated with Python 3. The Python unit test code generators are available in the generate folder.

The code generated unit tests can be regenerated tests/generate/generate.py:

python3 tests/generate/generate.py