beakerlib

Shell-level integration testing library for automated test development

brewmacoslinux
Try with needOr install directly
Source

About

Shell-level integration testing library

Commands

beakerlib

Examples

Source beakerlib in a test script to access testing functions$ source /usr/share/beakerlib/beakerlib.sh
Create a basic test phase with assertion and result reporting$ rlPhaseStartTest 'My Test' && rlAssertExists /etc/passwd && rlPhaseEnd
Run a command and assert it succeeds with exit code 0$ rlRun 'grep root /etc/passwd' 0 'Verify root user exists'