Files
shadow/tests/common/log.sh
2008-01-06 19:49:24 +00:00

47 lines
864 B
Bash

# Helpers to log messages / status
log_start ()
{
test="$1"
rational="$2"
cat << EOF
###############################################################################
#
# Test: $test
#
###############################################################################
#
# Rational: $rational
#
###############################################################################
EOF
}
log_end ()
{
test="$1"
cat << EOF
###############################################################################
#
# End of test $test
#
###############################################################################
EOF
}
log_status ()
{
test="$1"
status="$2"
cat << EOF
###############################################################################
#
# Status of test $test: $status
#
###############################################################################
EOF
}