We're losing the svn history (which we could probably keep if we tried hard enough) but don't consider that worthwhile. Note these tests are destructive, so run them only in a throwaway environment like a chroot, container, or vm. The tests/run.all script should be the one which launches all the tests. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
47 lines
867 B
Bash
47 lines
867 B
Bash
# Helpers to log messages / status
|
|
|
|
log_start ()
|
|
{
|
|
test="$1"
|
|
rationale="$2"
|
|
cat << EOF
|
|
|
|
###############################################################################
|
|
#
|
|
# Test: $test
|
|
#
|
|
###############################################################################
|
|
#
|
|
# Rationale: $rationale
|
|
#
|
|
###############################################################################
|
|
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
|
|
}
|
|
|