ASTERISK(1)

NAME
asttest - helper program for asterisk-testsuite Lua tests

SYNOPSIS
asttest [-v version] [-a directory] [-w] [-l filename] test_dir [test_dir...] asttest [-v version] [-a directory] -s test_dir asttest -h asttest is a helper program used internally to tests written in Lua in the Asterisk test suite (some, but not all, of the tests in the test suite are written in Lua. It looks for the specifications[D[D[D[D[D[D of a test in a directory that contains a file called test.lua. It was originally designed to drive the tests on its own, and thus you can pass it one or more directories, and in which case it will recursively search their subdirectories for test directories as well and log the result to a log file. However nowadays runtests.py handles logging, and the second form is used: a single test directory is processed, and logging goes to standard output.

OPTIONS

-s  Process a single directory. Log to standard output and return a non-zero output on error. The default (without -s) is to process potentially multiple directories and look recursively in their subdirectories for test.lua files as well, and to log to a file (see option -l).

-l logfile
    The name of the log file that will be created in each test directory with the results of the test. Not applicable when -s is used.

-a directory
    Run asterisk from under directory. For instance, the asterisk binary will be run from directory/sbin/asterisk. The default value is "asterisk". This is normally handled by runtests.py .

-v version
    Assume that the version of Asterisk is version. The tests to be run may differ by the version number. If the version is not provided, it should be detected from asterisk/version.h . This is normally handled by runtests.py .

-w  Only warn in case of a test error (not applicable in case of -s). In case of an error, a warning will be printed rather than the test failed. FIXME: this does not apply to failed tests, right?

-h  Show summary of options.

SEE ALSO
asterisk-tests-run(1)