function_assert_define 

Fuego 1.0 wiki

Login or create account

function assert define

NAME [edit section]

assert_define

SYNOPSIS [edit section]

  • assert_define <varname>

DESCRIPTION [edit section]

This function checks that the indicated variable is defined. Otherwise, it aborts the currently running test.

EXAMPLES [edit section]

Here are some sample invocations:
        assert_define FUNCTIONAL_BC_EXPR
        assert_define FUNCTIONAL_BC_RESULT

        is_on_target bc BC_PROGRAM /bin:/usr/bin:/usr/local/bin
        assert_define BC_PROGRAM

This second example shows use of assert_define following a call to is_on_target

ENVIRONMENT and ARGUMENTS [edit section]

RETURN [edit section]

Returns non-zero on error.

SOURCE [edit section]

Located in scripts/functions.sh

SEE ALSO [edit section]

TBWiki engine 1.8.3 by Tim Bird