test: new test, verify task behavior with conditions

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-04-21 20:52:34 +02:00
1 parent 3e4be9a122
commit 05e6b3e752
4 files changed
+90

No files matched your search

+5
View File
@@ -21,6 +21,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
assert_file_contains()
{
assert "File $1 contains the string $2" "$(texec grep "$2" "$1")"
}
assert_num_children()
{
assert "$1 services are running" "$(texec pgrep -P 1 "$2" | wc -l)" -eq "$1"