function log compare

NAME [edit section]

log_compare

SYNOPSIS [edit section]

DESCRIPTION [edit section]

log_compare is used to detect success or failure of a functional test.

It scans the test log looking for occurrences of the pattern, and counting the number of times it occurs.

It also does a comparison of the parsed test log output (filtered using the pattern) with saved, parsed test log output. If these don't match, then log_compare is supposed to fail with an error message.

The result of the last log_compare function determines the success or failure of the entire test.

EXAMPLES [edit section]

Here are some sample invocations:

ENVIRONMENT and ARGUMENTS [edit section]

Arguments to log_compare are:

Environment variables used by log_compare are:

RETURN [edit section]

Returns non-zero on error.

SOURCE [edit section]

Located in scripts/functions.sh

SEE ALSO [edit section]